GH-792 Fix Supplier streaming in s-c-function-web

Resolves #792
This commit is contained in:
Oleg Zhurakousky
2022-01-24 15:36:24 +01:00
parent f054d4534c
commit 4699f69be5
10 changed files with 109 additions and 51 deletions

View File

@@ -51,15 +51,6 @@ public class FunctionTests {
assertThat(output).isEqualTo("hello");
}
@Test
public void testWords() {
Flux<String> output = this.functions.words().get();
List<String> results = output.collectList().block();
assertThat(results.size()).isEqualTo(2);
assertThat(results.get(0)).isEqualTo("foo");
assertThat(results.get(1)).isEqualTo("bar");
}
@Test
public void testGreeter() {
assertThat(new Greeter().apply("World")).isEqualTo("Hello World");