Skip to content

Commit 869d0e7

Browse files
committed
Fixing tests round 1
1 parent 8a07fa4 commit 869d0e7

5 files changed

Lines changed: 26 additions & 2 deletions

File tree

spring-cloud-function-adapters/spring-cloud-function-adapter-aws/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
<artifactId>spring-cloud-function-web</artifactId>
9999
<optional>true</optional>
100100
</dependency>
101+
<dependency>
102+
<groupId>org.springframework.boot</groupId>
103+
<artifactId>spring-boot-starter-webflux</artifactId>
104+
</dependency>
101105
<dependency>
102106
<groupId>org.springframework.boot</groupId>
103107
<artifactId>spring-boot-starter-test</artifactId>

spring-cloud-function-samples/function-sample-pojo/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<groupId>org.springframework.boot</groupId>
3333
<artifactId>spring-boot-starter-web</artifactId>
3434
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-webflux</artifactId>
38+
</dependency>
3539
<dependency>
3640
<groupId>org.springframework.boot</groupId>
3741
<artifactId>spring-boot-configuration-processor</artifactId>

spring-cloud-function-samples/function-sample-spring-integration/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@
3232
<groupId>org.springframework.boot</groupId>
3333
<artifactId>spring-boot-starter-integration</artifactId>
3434
</dependency>
35-
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-web</artifactId>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-webflux</artifactId>
42+
</dependency>
3643
<dependency>
3744
<groupId>org.springframework.boot</groupId>
3845
<artifactId>spring-boot-starter-test</artifactId>

spring-cloud-function-samples/function-sample/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<groupId>org.springframework.boot</groupId>
2929
<artifactId>spring-boot-starter-actuator</artifactId>
3030
</dependency>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-web</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-webflux</artifactId>
38+
</dependency>
3139
<dependency>
3240
<groupId>org.springframework.cloud</groupId>
3341
<artifactId>spring-cloud-starter-function-webflux</artifactId>

spring-cloud-function-samples/function-sample/src/test/java/com/example/WebTestClientTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.junit.jupiter.api.Test;
44
import org.springframework.beans.factory.annotation.Autowired;
55
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
6+
import org.springframework.boot.test.context.SpringBootTest;
67
import org.springframework.cloud.function.context.test.FunctionalSpringBootTest;
78
import org.springframework.http.MediaType;
89
import org.springframework.test.web.reactive.server.WebTestClient;
@@ -12,7 +13,7 @@
1213
import java.util.ArrayList;
1314
import java.util.List;
1415

15-
@FunctionalSpringBootTest
16+
@FunctionalSpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
1617
@AutoConfigureWebTestClient
1718
public class WebTestClientTests {
1819

0 commit comments

Comments
 (0)