Skip to content

Commit 8b4576c

Browse files
Dev/connection impl (#68)
* added code to test the connectvity * Replace the url with actual url and implemented other functionlity * merge from main * update caseurnmapper to urnmapper * update caseurnmapper to urnmapper * update caseurnmapper to urnmapper * update caseurnmapper to urnmapper * update pact flow test * updated code for pact testing * added logs --------- Co-authored-by: Dmitri Algazin <dmitri.algazin@hmcts.net>
1 parent c811381 commit 8b4576c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ dependencies {
268268
implementation 'org.hibernate.validator:hibernate-validator:9.0.1.Final'
269269
implementation 'org.apache.commons:commons-text:1.13.1'
270270

271-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.19.2'
271+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.19.1'
272272
// implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'
273273

274274
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion
275275
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
276276

277-
testImplementation(platform('org.junit:junit-bom:5.13.4'))
277+
testImplementation(platform('org.junit:junit-bom:5.13.3'))
278278
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
279279
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '3.5.3', {
280280
exclude group: 'junit', module: 'junit'

src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public String getCaseId(final String caseUrn) {
3636
getRequestEntity(),
3737
CaseMapperResponse.class
3838
);
39+
LOG.info("CaseMapperResponse is : {} and body : {} caseurn : {} ", responseEntity.getStatusCode(), responseEntity.getBody(), caseUrn);
40+
3941
if (responseEntity.getStatusCode().is2xxSuccessful() && responseEntity.getBody() != null) {
4042
CaseMapperResponse body = responseEntity.getBody();
4143
return body.getCaseId();
@@ -48,6 +50,7 @@ public String getCaseId(final String caseUrn) {
4850

4951
public String getCaseMapperServiceUrl() {
5052
if (this.caseMapperServiceUrl != null) {
53+
LOG.info("caseMapperServiceUrl is : {}", this.caseMapperServiceUrl);
5154
return this.caseMapperServiceUrl;
5255
}
5356
LOG.atError().log("caseMapperServiceUrl is empty");

0 commit comments

Comments
 (0)