Skip to content

Commit 2977f30

Browse files
committed
Update to Spring Boot 4.0.0-RC2
1 parent 6a99daf commit 2977f30

File tree

10 files changed

+17
-14
lines changed

10 files changed

+17
-14
lines changed

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@
126126
<!-- Run Docker build by default -->
127127
<skipDocker>false</skipDocker>
128128
<sortpom-maven-plugin.version>4.0.0</sortpom-maven-plugin.version>
129-
<!-- TODO: update to 4.0.0 after Spring Boot 4 release in November -->
130-
<spring-boot.version>4.0.0-M3</spring-boot.version>
129+
<spring-boot.version>4.0.0-RC2</spring-boot.version>
131130
<testcontainers.version>1.21.3</testcontainers.version>
132131
<testng.version>7.11.0</testng.version>
133132
<xmlunit-assertj3.version>2.11.0</xmlunit-assertj3.version>

server/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
<artifactId>spring-boot-starter-test</artifactId>
141141
<scope>test</scope>
142142
</dependency>
143+
<dependency>
144+
<groupId>org.springframework.boot</groupId>
145+
<artifactId>spring-boot-webmvc-test</artifactId>
146+
<scope>test</scope>
147+
</dependency>
143148
<dependency>
144149
<groupId>org.springframework.boot</groupId>
145150
<artifactId>spring-boot-starter-restclient</artifactId>

server/src/test/kotlin/com/adobe/testing/s3mock/controller/BucketControllerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import org.mockito.kotlin.eq
6464
import org.mockito.kotlin.verify
6565
import org.mockito.kotlin.whenever
6666
import org.springframework.beans.factory.annotation.Autowired
67-
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
67+
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
6868
import org.springframework.http.MediaType
6969
import org.springframework.test.context.bean.override.mockito.MockitoBean
7070
import org.springframework.test.web.servlet.MockMvc

server/src/test/kotlin/com/adobe/testing/s3mock/controller/ContextPathObjectStoreControllerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import com.adobe.testing.s3mock.store.MultipartStore
2626
import org.junit.jupiter.api.Test
2727
import org.mockito.kotlin.whenever
2828
import org.springframework.beans.factory.annotation.Autowired
29-
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
29+
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
3030
import org.springframework.http.MediaType
3131
import org.springframework.test.context.bean.override.mockito.MockitoBean
3232
import org.springframework.test.web.servlet.MockMvc

server/src/test/kotlin/com/adobe/testing/s3mock/controller/FaviconControllerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package com.adobe.testing.s3mock.controller
1818
import com.adobe.testing.s3mock.store.KmsKeyStore
1919
import org.junit.jupiter.api.Test
2020
import org.springframework.beans.factory.annotation.Autowired
21-
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
21+
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
2222
import org.springframework.http.MediaType
2323
import org.springframework.test.context.bean.override.mockito.MockitoBean
2424
import org.springframework.test.web.servlet.MockMvc

server/src/test/kotlin/com/adobe/testing/s3mock/controller/MultipartControllerTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import com.adobe.testing.s3mock.dto.StorageClass
3232
import com.adobe.testing.s3mock.dto.Tag
3333
import com.adobe.testing.s3mock.dto.VersioningConfiguration
3434
import com.adobe.testing.s3mock.service.BucketService
35-
import com.adobe.testing.s3mock.service.FileChecksum
3635
import com.adobe.testing.s3mock.service.MultipartService
3736
import com.adobe.testing.s3mock.service.ObjectService
3837
import com.adobe.testing.s3mock.store.KmsKeyStore
@@ -46,7 +45,7 @@ import org.mockito.kotlin.eq
4645
import org.mockito.kotlin.isA
4746
import org.mockito.kotlin.whenever
4847
import org.springframework.beans.factory.annotation.Autowired
49-
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
48+
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
5049
import org.springframework.http.HttpHeaders
5150
import org.springframework.http.MediaType
5251
import org.springframework.test.context.bean.override.mockito.MockitoBean

server/src/test/kotlin/com/adobe/testing/s3mock/controller/ObjectControllerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import org.mockito.kotlin.isNull
5454
import org.mockito.kotlin.verify
5555
import org.mockito.kotlin.whenever
5656
import org.springframework.beans.factory.annotation.Autowired
57-
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
57+
import org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
5858
import org.springframework.http.HttpHeaders
5959
import org.springframework.http.MediaType
6060
import org.springframework.mock.web.MockMultipartFile

server/src/test/kotlin/com/adobe/testing/s3mock/store/BucketStoreTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import org.assertj.core.api.Assertions.assertThatThrownBy
3636
import org.junit.jupiter.api.AfterEach
3737
import org.junit.jupiter.api.Test
3838
import org.springframework.beans.factory.annotation.Autowired
39-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
40-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc
4139
import org.springframework.boot.test.context.SpringBootTest
40+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
41+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureWebMvc
4242
import org.springframework.test.context.bean.override.mockito.MockitoBean
4343

4444
@AutoConfigureWebMvc

server/src/test/kotlin/com/adobe/testing/s3mock/store/MultipartStoreTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import org.junit.jupiter.api.Test
3434
import org.junit.jupiter.api.parallel.Execution
3535
import org.junit.jupiter.api.parallel.ExecutionMode
3636
import org.springframework.beans.factory.annotation.Autowired
37-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
38-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc
3937
import org.springframework.boot.test.context.SpringBootTest
38+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
39+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureWebMvc
4040
import org.springframework.http.HttpRange
4141
import org.springframework.http.MediaType
4242
import org.springframework.test.context.bean.override.mockito.MockitoBean

server/src/test/kotlin/com/adobe/testing/s3mock/store/ObjectStoreTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import org.junit.jupiter.api.Test
3737
import org.junit.jupiter.api.parallel.Execution
3838
import org.junit.jupiter.api.parallel.ExecutionMode
3939
import org.springframework.beans.factory.annotation.Autowired
40-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
41-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc
4240
import org.springframework.boot.test.context.SpringBootTest
41+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
42+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureWebMvc
4343
import org.springframework.http.HttpHeaders
4444
import org.springframework.test.context.bean.override.mockito.MockitoBean
4545
import java.io.File

0 commit comments

Comments
 (0)