File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
spring-cloud-function-adapters/spring-cloud-function-adapter-gcp
src/test/java/org/springframework/cloud/function/adapter/gcp/integration Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 228228 <module >spring-cloud-function-adapters</module >
229229 <module >spring-cloud-function-integration</module >
230230 <!-- <module>spring-cloud-function-rsocket</module> -->
231- <module >spring-cloud-function-kotlin</module >
231+ <!-- < module>spring-cloud-function-kotlin</module> -- >
232232 <module >docs</module >
233233 </modules >
234234 </profile >
Original file line number Diff line number Diff line change 6464 <artifactId >spring-web</artifactId >
6565 <scope >test</scope >
6666 </dependency >
67+ <dependency >
68+ <groupId >org.springframework.boot</groupId >
69+ <artifactId >spring-boot-resttestclient</artifactId >
70+ <scope >test</scope >
71+ </dependency >
72+ <dependency >
73+ <groupId >org.springframework.boot</groupId >
74+ <artifactId >spring-boot-webmvc-test</artifactId >
75+ <scope >test</scope >
76+ </dependency >
77+ <dependency >
78+ <groupId >org.springframework.boot</groupId >
79+ <artifactId >spring-boot-webtestclient</artifactId >
80+ </dependency >
6781 <dependency >
6882 <groupId >com.google.cloud.functions.invoker</groupId >
6983 <artifactId >java-function-invoker</artifactId >
7084 <version >${google.cloud.functions.invoker.version} </version >
7185 <scope >test</scope >
7286 </dependency >
73- <!-- replace com.github.stefanbirkner:system-rules:1.19.0. Used in FunctionInvokerBackgroundTests -->
87+ <!-- replace com.github.stefanbirkner:system-rules:1.19.0. Used in
88+ FunctionInvokerBackgroundTests -->
7489 <dependency >
7590 <groupId >com.github.blindpirate</groupId >
7691 <artifactId >junit5-capture-system-output-extension</artifactId >
Original file line number Diff line number Diff line change 2323
2424import org .junit .jupiter .api .Test ;
2525
26- import org .springframework .boot .web .server .test .client .TestRestTemplate ;
26+ import org .springframework .boot .resttestclient .TestRestTemplate ;
27+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
2728import org .springframework .cloud .function .context .config .ContextFunctionCatalogAutoConfiguration ;
2829import org .springframework .context .annotation .Bean ;
2930import org .springframework .context .annotation .Configuration ;
4142 * @author Daniel Zou
4243 * @author Mike Eltsufin
4344 */
45+ @ AutoConfigureTestRestTemplate
4446public class FunctionInvokerIntegrationTests {
4547
4648 @ Test
Original file line number Diff line number Diff line change 3535import com .google .cloud .functions .invoker .runner .Invoker ;
3636import com .google .gson .Gson ;
3737
38- import org .springframework .boot .web .server .test .client .TestRestTemplate ;
38+
39+ import org .springframework .boot .resttestclient .TestRestTemplate ;
40+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
3941import org .springframework .cloud .function .adapter .gcp .FunctionInvoker ;
4042import org .springframework .http .HttpEntity ;
4143import org .springframework .http .HttpHeaders ;
5052 * @author Mike Eltsufin
5153 * @author Chris Bono
5254 */
55+ @ AutoConfigureTestRestTemplate
5356final public class LocalServerTestSupport {
5457
5558 private static final Gson gson = new Gson ();
You can’t perform that action at this time.
0 commit comments