diff --git a/examples/spring-web/pom.xml b/examples/spring-web/pom.xml index 2bcbd1afc88..59c055603e4 100644 --- a/examples/spring-web/pom.xml +++ b/examples/spring-web/pom.xml @@ -16,7 +16,7 @@ - 3.5.7 + 4.0.0 @@ -69,6 +69,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 b1af998381c..e60c6d10a43 100644 --- a/examples/springboot/pom.xml +++ b/examples/springboot/pom.xml @@ -16,7 +16,7 @@ - 3.5.7 + 4.0.0