diff --git a/examples/spring-web/pom.xml b/examples/spring-web/pom.xml index 5fec79abd76..2567ed1af82 100644 --- a/examples/spring-web/pom.xml +++ b/examples/spring-web/pom.xml @@ -17,7 +17,7 @@ 17 - 3.5.6 + 4.0.0 @@ -70,6 +70,11 @@ spring-boot-starter-test test + + org.springframework.boot + spring-boot-resttestclient + test + org.springframework.security spring-security-test diff --git a/examples/spring-web/src/test/java/com/inrupt/client/examples/spring/web/WebApplicationTests.java b/examples/spring-web/src/test/java/com/inrupt/client/examples/spring/web/WebApplicationTests.java index 5122e166ddd..9ef19b1f93a 100644 --- a/examples/spring-web/src/test/java/com/inrupt/client/examples/spring/web/WebApplicationTests.java +++ b/examples/spring-web/src/test/java/com/inrupt/client/examples/spring/web/WebApplicationTests.java @@ -41,8 +41,9 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.resttestclient.TestRestTemplate; +import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureTestRestTemplate; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.oauth2.core.oidc.OidcIdToken; import org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser; @@ -50,6 +51,7 @@ @SpringBootTest( webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = WebApplication.class) +@AutoConfigureTestRestTemplate class WebApplicationTests { static final MockWebServer mockServer = new MockWebServer(); diff --git a/examples/springboot/pom.xml b/examples/springboot/pom.xml index 8ee126c675a..e28aedb5bdc 100644 --- a/examples/springboot/pom.xml +++ b/examples/springboot/pom.xml @@ -17,7 +17,7 @@ 17 - 3.5.6 + 4.0.0