Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.springframework.http.MediaType;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.web.servlet.MockMvc;
import uk.gov.hmcts.cp.openapi.model.CourtScheduleResponse;

import java.util.UUID;

Expand All @@ -32,8 +31,6 @@ class CourtScheduleControllerIT {
@Test
void shouldReturnOkWhenValidUrnIsProvided() throws Exception {
String caseUrn = "test-case-urn";
CourtScheduleResponse expectedResponse = CourtScheduleResponse.builder().build();

mockMvc.perform(get("/case/{case_urn}/courtschedule", caseUrn)
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
Expand Down Expand Up @@ -69,7 +66,7 @@ void shouldReturnOkWhenValidUrnIsProvided() throws Exception {
assertNotNull(sitting.get("sittingStart").asText());
assertNotNull(sitting.get("sittingEnd").asText());
UUID judiciaryId = UUID.fromString(sitting.get("judiciaryId").asText());
assertNotNull(sitting.get("judiciaryId").asText());
assertNotNull(judiciaryId);
log.info("Response Object: {}", jsonBody);
});
}
Expand Down