Skip to content

Commit 1ff8776

Browse files
Merge pull request #25 from hmcts/minor-tidy
remove unused vars in int test
2 parents 19a93a5 + ce1f967 commit 1ff8776

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/integrationTest/java/uk/gov/hmcts/cp/controllers/CourtScheduleControllerIT.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.springframework.http.MediaType;
1313
import org.springframework.test.context.junit.jupiter.SpringExtension;
1414
import org.springframework.test.web.servlet.MockMvc;
15-
import uk.gov.hmcts.cp.openapi.model.CourtScheduleResponse;
1615

1716
import java.util.UUID;
1817

@@ -32,8 +31,6 @@ class CourtScheduleControllerIT {
3231
@Test
3332
void shouldReturnOkWhenValidUrnIsProvided() throws Exception {
3433
String caseUrn = "test-case-urn";
35-
CourtScheduleResponse expectedResponse = CourtScheduleResponse.builder().build();
36-
3734
mockMvc.perform(get("/case/{case_urn}/courtschedule", caseUrn)
3835
.accept(MediaType.APPLICATION_JSON))
3936
.andExpect(status().isOk())
@@ -69,7 +66,7 @@ void shouldReturnOkWhenValidUrnIsProvided() throws Exception {
6966
assertNotNull(sitting.get("sittingStart").asText());
7067
assertNotNull(sitting.get("sittingEnd").asText());
7168
UUID judiciaryId = UUID.fromString(sitting.get("judiciaryId").asText());
72-
assertNotNull(sitting.get("judiciaryId").asText());
69+
assertNotNull(judiciaryId);
7370
log.info("Response Object: {}", jsonBody);
7471
});
7572
}

0 commit comments

Comments
 (0)