Fix reactor dependencies
This commit is contained in:
@@ -21,17 +21,13 @@
|
||||
<java.version>1.8</java.version>
|
||||
<spring-cloud-function.version>1.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
||||
<wrapper.version>1.0.9.RELEASE</wrapper.version>
|
||||
<reactor.version>3.1.1.RELEASE</reactor.version>
|
||||
<reactor.version>3.1.2.RELEASE</reactor.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-function-stream</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-binder-servlet</artifactId>
|
||||
<artifactId>spring-cloud-function-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
boms.spring-cloud-dependencies: org.springframework.cloud:spring-cloud-dependencies:Dalston.SR3
|
||||
boms.spring-cloud-dependencies: org.springframework.cloud:spring-cloud-dependencies:Edgware.RELEASE
|
||||
dependencies.spring-cloud-function-stream: org.springframework.cloud:spring-cloud-function-stream
|
||||
dependencies.spring-cloud-stream-rabbit: org.springframework.cloud:spring-cloud-starter-stream-rabbit
|
||||
@@ -40,7 +40,7 @@ public class SampleApplicationTests {
|
||||
@Test
|
||||
public void words() {
|
||||
assertThat(new TestRestTemplate()
|
||||
.getForObject("http://localhost:" + port + "/stream/words", String.class))
|
||||
.getForObject("http://localhost:" + port + "/words", String.class))
|
||||
.isEqualTo("[{\"value\":\"foo\"},{\"value\":\"bar\"}]");
|
||||
}
|
||||
|
||||
@@ -48,14 +48,14 @@ public class SampleApplicationTests {
|
||||
public void uppercase() {
|
||||
// TODO: make this work with a JSON stream as well (like in WebFlux)
|
||||
assertThat(new TestRestTemplate().postForObject(
|
||||
"http://localhost:" + port + "/stream/uppercase", "[{\"value\":\"foo\"}]",
|
||||
"http://localhost:" + port + "/uppercase", "[{\"value\":\"foo\"}]",
|
||||
String.class)).isEqualTo("[{\"value\":\"FOO\"}]");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void lowercase() {
|
||||
assertThat(new TestRestTemplate().postForObject(
|
||||
"http://localhost:" + port + "/stream/lowercase", "[{\"value\":\"Foo\"}]",
|
||||
"http://localhost:" + port + "/lowercase", "[{\"value\":\"Foo\"}]",
|
||||
String.class)).isEqualTo("[{\"value\":\"foo\"}]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user