From d38ab0f6d085b5f5c44ef54ce24baf7cd4476d49 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:32:41 +0000 Subject: [PATCH 1/2] Bump springboot.version from 3.5.6 to 4.0.0 Bumps `springboot.version` from 3.5.6 to 4.0.0. Updates `org.springframework.boot:spring-boot-dependencies` from 3.5.6 to 4.0.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.5.6...v4.0.0) Updates `org.springframework.boot:spring-boot-maven-plugin` from 3.5.6 to 4.0.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.5.6...v4.0.0) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: org.springframework.boot:spring-boot-maven-plugin dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- examples/spring-web/pom.xml | 2 +- examples/springboot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/spring-web/pom.xml b/examples/spring-web/pom.xml index 5fec79abd7..49caa621c3 100644 --- a/examples/spring-web/pom.xml +++ b/examples/spring-web/pom.xml @@ -17,7 +17,7 @@ 17 - 3.5.6 + 4.0.0 diff --git a/examples/springboot/pom.xml b/examples/springboot/pom.xml index 8ee126c675..e28aedb5bd 100644 --- a/examples/springboot/pom.xml +++ b/examples/springboot/pom.xml @@ -17,7 +17,7 @@ 17 - 3.5.6 + 4.0.0 From 09c59ca658bdc04395638c533394fd1c3c708462 Mon Sep 17 00:00:00 2001 From: Aaron Coburn Date: Wed, 10 Dec 2025 15:05:09 -0600 Subject: [PATCH 2/2] Adjust configuration of TestRestTemplate --- examples/spring-web/pom.xml | 5 +++++ .../client/examples/spring/web/WebApplicationTests.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/spring-web/pom.xml b/examples/spring-web/pom.xml index 49caa621c3..2567ed1af8 100644 --- a/examples/spring-web/pom.xml +++ b/examples/spring-web/pom.xml @@ -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 5122e166dd..9ef19b1f93 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();