Skip to content

Commit 69e2e8a

Browse files
committed
Fix tests and dependencies related to boot changes
1 parent d3f1329 commit 69e2e8a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
<dependencies>
2727
<dependency>
2828
<groupId>org.springframework.cloud</groupId>
29-
<artifactId>spring-cloud-starter-function-webflux</artifactId>
29+
<artifactId>spring-cloud-function-web</artifactId>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-web</artifactId>
3034
</dependency>
3135
<dependency>
3236
<groupId>org.springframework.boot</groupId>

spring-cloud-function-web/src/test/java/org/springframework/cloud/function/test/HeadersToMessageTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class HeadersToMessageTests {
4646
@Test
4747
public void testBodyAndCustomHeaderFromMessagePropagation() throws Exception {
4848
this.client.post().uri("/").body(Mono.just("foo"), String.class).exchange()
49-
.expectStatus().isOk().expectHeader()
49+
.expectStatus().is2xxSuccessful().expectHeader()
5050
.valueEquals("x-content-type", "application/xml").expectHeader()
5151
.valueEquals("foo", "bar").expectBody(String.class).isEqualTo("FOO");
5252
}

0 commit comments

Comments
 (0)