File tree Expand file tree Collapse file tree 12 files changed +81
-82
lines changed
spring-cloud-function-samples
src/test/java/com/example
src/test/java/com/example
function-sample-spring-integration
src/test/java/com/example Expand file tree Collapse file tree 12 files changed +81
-82
lines changed Original file line number Diff line number Diff line change 180180 <module >spring-cloud-function-web</module >
181181 <module >spring-cloud-starter-function-web</module >
182182 <module >spring-cloud-starter-function-webflux</module >
183- <!-- < module>spring-cloud-function-samples</module> -- >
183+ <module >spring-cloud-function-samples</module >
184184 <!-- <module>spring-cloud-function-deployer</module> -->
185185 <module >spring-cloud-function-adapters</module >
186186 <module >spring-cloud-function-integration</module >
223223 <module >spring-cloud-function-web</module >
224224 <module >spring-cloud-starter-function-web</module >
225225 <module >spring-cloud-starter-function-webflux</module >
226- <!-- < module>spring-cloud-function-samples</module> -- >
226+ <module >spring-cloud-function-samples</module >
227227 <!-- <module>spring-cloud-function-deployer</module> -->
228228 <module >spring-cloud-function-adapters</module >
229229 <module >spring-cloud-function-integration</module >
Original file line number Diff line number Diff line change 5757 <version >1.0.0-alpha-2-rc5</version >
5858 <scope >test</scope >
5959 </dependency >
60+ <dependency >
61+ <groupId >org.springframework.boot</groupId >
62+ <artifactId >spring-boot-resttestclient</artifactId >
63+ <scope >test</scope >
64+ </dependency >
65+
66+ <dependency >
67+ <groupId >org.springframework.boot</groupId >
68+ <artifactId >spring-boot-webmvc-test</artifactId >
69+ <scope >test</scope >
70+ </dependency >
71+ <dependency >
72+ <groupId >org.springframework.boot</groupId >
73+ <artifactId >spring-boot-webtestclient</artifactId >
74+ </dependency >
6075 </dependencies >
6176
6277 <build >
Original file line number Diff line number Diff line change 1818
1919import java .io .IOException ;
2020
21- import org .springframework .boot .web . server . test . client .TestRestTemplate ;
21+ import org .springframework .boot .resttestclient .TestRestTemplate ;
2222
2323import static org .assertj .core .api .Assertions .assertThat ;
2424
Original file line number Diff line number Diff line change 4646 <artifactId >spring-boot-starter-test</artifactId >
4747 <scope >test</scope >
4848 </dependency >
49+ <dependency >
50+ <groupId >org.springframework.boot</groupId >
51+ <artifactId >spring-boot-resttestclient</artifactId >
52+ <scope >test</scope >
53+ </dependency >
54+
55+ <dependency >
56+ <groupId >org.springframework.boot</groupId >
57+ <artifactId >spring-boot-webmvc-test</artifactId >
58+ <scope >test</scope >
59+ </dependency >
60+ <dependency >
61+ <groupId >org.springframework.boot</groupId >
62+ <artifactId >spring-boot-webtestclient</artifactId >
63+ </dependency >
4964 </dependencies >
5065
5166 <dependencyManagement >
Original file line number Diff line number Diff line change 2121import org .junit .jupiter .api .Test ;
2222
2323import org .springframework .beans .factory .annotation .Autowired ;
24+ import org .springframework .boot .resttestclient .TestRestTemplate ;
25+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
2426import org .springframework .boot .test .context .SpringBootTest ;
2527import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
26- import org .springframework .boot .web .server .test .client .TestRestTemplate ;
2728import org .springframework .http .MediaType ;
2829import org .springframework .http .RequestEntity ;
2930import org .springframework .http .ResponseEntity ;
3435 * @author Dave Syer
3536 */
3637@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
38+ @ AutoConfigureTestRestTemplate
3739public class SampleApplicationMvcTests {
3840
3941 @ Autowired
Original file line number Diff line number Diff line change 2222import org .junit .jupiter .api .BeforeEach ;
2323import org .junit .jupiter .api .Test ;
2424
25+ import org .springframework .boot .resttestclient .TestRestTemplate ;
26+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
2527import org .springframework .boot .test .context .SpringBootTest ;
2628import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
27- import org .springframework .boot .web .server . test .LocalServerPort ;
28- import org .springframework .boot .web . server . test . client . TestRestTemplate ;
29+ import org .springframework .boot .test . web .server .LocalServerPort ;
30+ import org .springframework .boot .webtestclient . autoconfigure . AutoConfigureWebTestClient ;
2931import org .springframework .http .HttpEntity ;
3032import org .springframework .http .HttpHeaders ;
3133import org .springframework .http .MediaType ;
3941 * @author Oleg Zhurakousky
4042 */
4143@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
44+ @ AutoConfigureTestRestTemplate
4245public class SampleApplicationTests {
4346
4447 private HttpHeaders headers ;
Original file line number Diff line number Diff line change 4545 <artifactId >spring-boot-starter-test</artifactId >
4646 <scope >test</scope >
4747 </dependency >
48+ <dependency >
49+ <groupId >org.springframework.boot</groupId >
50+ <artifactId >spring-boot-resttestclient</artifactId >
51+ <scope >test</scope >
52+ </dependency >
53+
54+ <dependency >
55+ <groupId >org.springframework.boot</groupId >
56+ <artifactId >spring-boot-webmvc-test</artifactId >
57+ <scope >test</scope >
58+ </dependency >
59+ <dependency >
60+ <groupId >org.springframework.boot</groupId >
61+ <artifactId >spring-boot-webtestclient</artifactId >
62+ </dependency >
4863 </dependencies >
4964
5065 <dependencyManagement >
Original file line number Diff line number Diff line change 2121import org .junit .jupiter .api .Test ;
2222
2323import org .springframework .beans .factory .annotation .Autowired ;
24+ import org .springframework .boot .resttestclient .TestRestTemplate ;
25+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
2426import org .springframework .boot .test .context .SpringBootTest ;
25- import org .springframework .boot .web .server .test .client .TestRestTemplate ;
2627import org .springframework .http .HttpEntity ;
2728import org .springframework .http .HttpHeaders ;
2829import org .springframework .http .MediaType ;
2930
3031@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
32+ @ AutoConfigureTestRestTemplate
3133public class FunctionSampleSpringIntegrationApplicationTests {
3234
3335 @ Autowired
Original file line number Diff line number Diff line change 5050 <artifactId >spring-boot-starter-test</artifactId >
5151 <scope >test</scope >
5252 </dependency >
53+ <dependency >
54+ <groupId >org.springframework.boot</groupId >
55+ <artifactId >spring-boot-resttestclient</artifactId >
56+ <scope >test</scope >
57+ </dependency >
58+
59+ <dependency >
60+ <groupId >org.springframework.boot</groupId >
61+ <artifactId >spring-boot-webmvc-test</artifactId >
62+ <scope >test</scope >
63+ </dependency >
64+ <dependency >
65+ <groupId >org.springframework.boot</groupId >
66+ <artifactId >spring-boot-webtestclient</artifactId >
67+ </dependency >
5368 </dependencies >
5469
5570 <dependencyManagement >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments