File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/integrationTest/java/uk/gov/hmcts/cp/controllers Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1212import org .springframework .http .MediaType ;
1313import org .springframework .test .context .junit .jupiter .SpringExtension ;
1414import org .springframework .test .web .servlet .MockMvc ;
15- import uk .gov .hmcts .cp .openapi .model .CourtScheduleResponse ;
1615
1716import 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 }
You can’t perform that action at this time.
0 commit comments