Skip to content

Commit 8a42b6a

Browse files
Bump springboot.version from 3.5.6 to 4.0.0 (#2440)
* 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](spring-projects/spring-boot@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](spring-projects/spring-boot@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] <support@github.com> * Adjust configuration of TestRestTemplate --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Coburn <aaronc@inrupt.com>
1 parent 63a2a53 commit 8a42b6a

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

examples/spring-web/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<maven.compiler.release>17</maven.compiler.release>
20-
<springboot.version>3.5.6</springboot.version>
20+
<springboot.version>4.0.0</springboot.version>
2121
</properties>
2222

2323
<dependencyManagement>
@@ -70,6 +70,11 @@
7070
<artifactId>spring-boot-starter-test</artifactId>
7171
<scope>test</scope>
7272
</dependency>
73+
<dependency>
74+
<groupId>org.springframework.boot</groupId>
75+
<artifactId>spring-boot-resttestclient</artifactId>
76+
<scope>test</scope>
77+
</dependency>
7378
<dependency>
7479
<groupId>org.springframework.security</groupId>
7580
<artifactId>spring-security-test</artifactId>

examples/spring-web/src/test/java/com/inrupt/client/examples/spring/web/WebApplicationTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@
4141
import org.junit.jupiter.api.BeforeAll;
4242
import org.junit.jupiter.api.Test;
4343
import org.springframework.beans.factory.annotation.Autowired;
44+
import org.springframework.boot.resttestclient.TestRestTemplate;
45+
import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureTestRestTemplate;
4446
import org.springframework.boot.test.context.SpringBootTest;
45-
import org.springframework.boot.test.web.client.TestRestTemplate;
4647
import org.springframework.security.core.authority.AuthorityUtils;
4748
import org.springframework.security.oauth2.core.oidc.OidcIdToken;
4849
import org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser;
4950

5051
@SpringBootTest(
5152
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
5253
classes = WebApplication.class)
54+
@AutoConfigureTestRestTemplate
5355
class WebApplicationTests {
5456

5557
static final MockWebServer mockServer = new MockWebServer();

examples/springboot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<maven.compiler.release>17</maven.compiler.release>
20-
<springboot.version>3.5.6</springboot.version>
20+
<springboot.version>4.0.0</springboot.version>
2121
</properties>
2222

2323
<dependencyManagement>

0 commit comments

Comments
 (0)