File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/test/java/com/inrupt/client/examples/spring/web Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 4141import org .junit .jupiter .api .BeforeAll ;
4242import org .junit .jupiter .api .Test ;
4343import org .springframework .beans .factory .annotation .Autowired ;
44+ import org .springframework .boot .resttestclient .TestRestTemplate ;
45+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
4446import org .springframework .boot .test .context .SpringBootTest ;
45- import org .springframework .boot .test .web .client .TestRestTemplate ;
4647import org .springframework .security .core .authority .AuthorityUtils ;
4748import org .springframework .security .oauth2 .core .oidc .OidcIdToken ;
4849import org .springframework .security .oauth2 .core .oidc .user .DefaultOidcUser ;
4950
5051@ SpringBootTest (
5152 webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT ,
5253 classes = WebApplication .class )
54+ @ AutoConfigureTestRestTemplate
5355class WebApplicationTests {
5456
5557 static final MockWebServer mockServer = new MockWebServer ();
You can’t perform that action at this time.
0 commit comments