Add Docs for Flux Aggregator

* Some test polishing
* Fix not properly wrapped code snippet in the `scripting.adoc`

Doc polishing
This commit is contained in:
Artem Bilan
2019-06-14 11:15:33 -04:00
committed by Gary Russell
parent 2fb7554dcf
commit 71fbe29da4
4 changed files with 77 additions and 6 deletions

View File

@@ -177,8 +177,9 @@ public class CorrelationHandlerTests {
@Test
public void testFluxAggregator() {
IntegrationFlow testFlow = (flow) ->
flow.split()
IntegrationFlow testFlow =
(flow) -> flow
.split()
.channel(MessageChannels.flux())
.handle(new FluxAggregatorMessageHandler());
@@ -189,7 +190,7 @@ public class CorrelationHandlerTests {
@SuppressWarnings("unchecked")
Flux<Message<?>> window =
registration.getMessagingTemplate()
.convertSendAndReceive(new Integer[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }, Flux.class);
.convertSendAndReceive(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }, Flux.class);
assertThat(window).isNotNull();