Skip to content

Commit e5228c7

Browse files
Bump springboot.version from 3.5.7 to 4.0.0 (#2435)
* Bump springboot.version from 3.5.7 to 4.0.0 Bumps `springboot.version` from 3.5.7 to 4.0.0. Updates `org.springframework.boot:spring-boot-dependencies` from 3.5.7 to 4.0.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.5.7...v4.0.0) Updates `org.springframework.boot:spring-boot-maven-plugin` from 3.5.7 to 4.0.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.5.7...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 usage 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 7dbe865 commit e5228c7

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
@@ -16,7 +16,7 @@
1616
</description>
1717

1818
<properties>
19-
<springboot.version>3.5.7</springboot.version>
19+
<springboot.version>4.0.0</springboot.version>
2020
</properties>
2121

2222
<dependencyManagement>
@@ -69,6 +69,11 @@
6969
<artifactId>spring-boot-starter-test</artifactId>
7070
<scope>test</scope>
7171
</dependency>
72+
<dependency>
73+
<groupId>org.springframework.boot</groupId>
74+
<artifactId>spring-boot-resttestclient</artifactId>
75+
<scope>test</scope>
76+
</dependency>
7277
<dependency>
7378
<groupId>org.springframework.security</groupId>
7479
<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
@@ -16,7 +16,7 @@
1616
</description>
1717

1818
<properties>
19-
<springboot.version>3.5.7</springboot.version>
19+
<springboot.version>4.0.0</springboot.version>
2020
</properties>
2121

2222
<dependencyManagement>

0 commit comments

Comments
 (0)