Skip to content

Commit dc62b90

Browse files
authored
Merge pull request #63 from remotemobprogramming/spring-3.4
update to Spring Boot 3.4.13
2 parents 7db5e1d + 8f86c3c commit dc62b90

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.4</version>
9+
<version>3.4.13</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>sh.mob</groupId>

‎src/test/java/sh/mob/timer/web/ApiTests.java‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import static org.springframework.http.MediaType.APPLICATION_JSON;
44
import 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

96
import java.time.Clock;
107
import java.time.Instant;
@@ -15,13 +12,11 @@
1512
import org.mockito.Mockito;
1613
import org.springframework.beans.factory.annotation.Autowired;
1714
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
18-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
1915
import org.springframework.boot.test.context.SpringBootTest;
20-
import org.springframework.boot.test.mock.mockito.MockBean;
2116
import org.springframework.http.HttpMethod;
2217
import org.springframework.http.MediaType;
18+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
2319
import org.springframework.test.web.reactive.server.WebTestClient;
24-
import org.springframework.test.web.servlet.MockMvc;
2520
import org.springframework.web.reactive.function.BodyInserters;
2621
import reactor.test.StepVerifier;
2722
import 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

Comments
 (0)