diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index f10701b4..0e5f4c72 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -35,10 +35,15 @@
spring-boot-starter-test
test
+
+ org.springframework.boot
+ spring-boot-starter-webmvc-test
+ test
+
- org.springframework.security
- spring-security-test
+ org.springframework.boot
+ spring-boot-starter-security-test
test
diff --git a/integration-tests/src/test/java/my/bookshop/it/FeatureTogglesIT.java b/integration-tests/src/test/java/my/bookshop/it/FeatureTogglesIT.java
index e266e334..936c9802 100644
--- a/integration-tests/src/test/java/my/bookshop/it/FeatureTogglesIT.java
+++ b/integration-tests/src/test/java/my/bookshop/it/FeatureTogglesIT.java
@@ -7,8 +7,8 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.servlet.MockMvc;
diff --git a/pom.xml b/pom.xml
index e547a030..2c2cc1c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,11 @@
org.springframework.boot
spring-boot-starter-parent
+<<<<<<< HEAD
+ 4.0.2
+=======
3.5.10
+>>>>>>> origin/main
@@ -28,7 +32,7 @@
21
- 4.6.1
+ 4.7.0-SNAPSHOT
5.26.0
3.6.5
3.8.6
diff --git a/srv/pom.xml b/srv/pom.xml
index ef4135d6..c0ed15cc 100644
--- a/srv/pom.xml
+++ b/srv/pom.xml
@@ -110,6 +110,11 @@
spring-boot-starter-security
+
+ org.springframework.boot
+ spring-boot-starter-security-oauth2-resource-server
+
+
org.springframework.boot
spring-boot-starter-actuator
@@ -122,14 +127,26 @@
- org.springframework.security
- spring-security-test
+ org.springframework.boot
+ spring-boot-starter-security-test
+ test
+
+
+
+ org.springframework.boot
+ spring-boot-starter-webclient
+ test
+
+
+
+ org.springframework.boot
+ spring-boot-webtestclient
test
org.springframework.boot
- spring-boot-starter-webflux
+ spring-boot-starter-webmvc-test
test
diff --git a/srv/src/main/java/my/bookshop/health/CustomHealthIndicator.java b/srv/src/main/java/my/bookshop/health/CustomHealthIndicator.java
index 4ecd1295..c8abcec6 100644
--- a/srv/src/main/java/my/bookshop/health/CustomHealthIndicator.java
+++ b/srv/src/main/java/my/bookshop/health/CustomHealthIndicator.java
@@ -1,8 +1,8 @@
package my.bookshop.health;
-import org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator;
-import org.springframework.boot.actuate.health.Health;
-import org.springframework.boot.actuate.health.HealthIndicator;
+import org.springframework.boot.health.autoconfigure.contributor.ConditionalOnEnabledHealthIndicator;
+import org.springframework.boot.health.contributor.Health;
+import org.springframework.boot.health.contributor.HealthIndicator;
import org.springframework.stereotype.Component;
/** Custom health indicator implementation. */
diff --git a/srv/src/test/java/my/bookshop/AdminServiceAddress_default_ITest.java b/srv/src/test/java/my/bookshop/AdminServiceAddress_default_ITest.java
index 63eef15f..90f4a4b9 100644
--- a/srv/src/test/java/my/bookshop/AdminServiceAddress_default_ITest.java
+++ b/srv/src/test/java/my/bookshop/AdminServiceAddress_default_ITest.java
@@ -3,6 +3,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
+import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.test.context.ActiveProfiles;
/**
@@ -12,6 +13,7 @@
*/
@ActiveProfiles("default")
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
+@AutoConfigureWebTestClient
class AdminServiceAddress_default_ITest extends AdminServiceAddressITestBase {
@Test
diff --git a/srv/src/test/java/my/bookshop/AdminServiceAddress_mocked_ITest.java b/srv/src/test/java/my/bookshop/AdminServiceAddress_mocked_ITest.java
index bd43bb1b..c2f63def 100644
--- a/srv/src/test/java/my/bookshop/AdminServiceAddress_mocked_ITest.java
+++ b/srv/src/test/java/my/bookshop/AdminServiceAddress_mocked_ITest.java
@@ -3,6 +3,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
+import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.test.context.ActiveProfiles;
/**
@@ -16,6 +17,7 @@
webEnvironment = WebEnvironment.RANDOM_PORT,
properties =
"cds.remote.services.'[API_BUSINESS_PARTNER]'.destination.name=myself-AdminServiceAddressITest")
+@AutoConfigureWebTestClient
class AdminServiceAddress_mocked_ITest extends AdminServiceAddressITestBase {
@Test
diff --git a/srv/src/test/java/my/bookshop/CatalogServiceITest.java b/srv/src/test/java/my/bookshop/CatalogServiceITest.java
index ee71ea3e..6aa6862e 100644
--- a/srv/src/test/java/my/bookshop/CatalogServiceITest.java
+++ b/srv/src/test/java/my/bookshop/CatalogServiceITest.java
@@ -14,8 +14,8 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.http.MediaType;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.web.servlet.MockMvc;
diff --git a/srv/src/test/java/my/bookshop/GenreHierarchyTest.java b/srv/src/test/java/my/bookshop/GenreHierarchyTest.java
index d6d374bb..193436ef 100644
--- a/srv/src/test/java/my/bookshop/GenreHierarchyTest.java
+++ b/srv/src/test/java/my/bookshop/GenreHierarchyTest.java
@@ -7,8 +7,8 @@
import java.net.URI;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.util.UriComponentsBuilder;
diff --git a/srv/src/test/java/my/bookshop/NotesServiceITest.java b/srv/src/test/java/my/bookshop/NotesServiceITest.java
index cc6c68b2..b4179bf9 100644
--- a/srv/src/test/java/my/bookshop/NotesServiceITest.java
+++ b/srv/src/test/java/my/bookshop/NotesServiceITest.java
@@ -4,6 +4,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
+import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.http.HttpHeaders;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.reactive.server.WebTestClient;
@@ -12,6 +13,7 @@
webEnvironment = WebEnvironment.RANDOM_PORT,
properties =
"cds.remote.services.'[API_BUSINESS_PARTNER]'.destination.name=myself-NotesServiceITest")
+@AutoConfigureWebTestClient
@ActiveProfiles({"default", "mocked"})
class NotesServiceITest {