22
33import static org .springframework .http .MediaType .APPLICATION_JSON ;
44import static org .springframework .http .MediaType .TEXT_EVENT_STREAM ;
5- import static org .springframework .test .web .servlet .request .MockMvcRequestBuilders .get ;
6- import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ;
7- import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .status ;
85
96import java .time .Clock ;
107import java .time .Instant ;
1512import org .mockito .Mockito ;
1613import org .springframework .beans .factory .annotation .Autowired ;
1714import org .springframework .boot .test .autoconfigure .web .reactive .AutoConfigureWebTestClient ;
18- import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
1915import org .springframework .boot .test .context .SpringBootTest ;
20- import org .springframework .boot .test .mock .mockito .MockBean ;
2116import org .springframework .http .HttpMethod ;
2217import org .springframework .http .MediaType ;
18+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
2319import org .springframework .test .web .reactive .server .WebTestClient ;
24- import org .springframework .test .web .servlet .MockMvc ;
2520import org .springframework .web .reactive .function .BodyInserters ;
2621import reactor .test .StepVerifier ;
2722import sh .mob .timer .web .RoomApiController .PutTimerRequest ;
@@ -32,7 +27,8 @@ class ApiTests {
3227
3328 @ Autowired private WebTestClient webTestClient ;
3429
35- @ MockBean private Clock clock ;
30+ @ MockitoBean
31+ private Clock clock ;
3632 @ Autowired private RoomRepository roomRepository ;
3733
3834 @ BeforeEach
0 commit comments