inLeft.pipeInput(A);
- assertThat(outJoined.isEmpty()).isTrue();
+ assertThat(outcome()).containsExactlyInAnyOrder();
inRight.pipeInput(a);
- assertThat(outcome()).containsExactly("A-a");
+ assertThat(outcome()).containsExactlyInAnyOrder("A-a");
inLeft.pipeInput(B);
- assertThat(outcome()).containsExactly("B-a");
+ assertThat(outcome()).containsExactlyInAnyOrder("B-a");
inRight.pipeInput(b);
assertThat(outcome()).containsExactlyInAnyOrder("A-b", "B-b");
assertThat(outcome()).containsExactlyInAnyOrder("D-b", "D-c", "D-d");
inLeft.pipeInput(E);
- assertThat(noResult());
+ assertThat(outcome()).containsExactlyInAnyOrder();
inLeft.pipeInput(F);
- assertThat(noResult());
+ assertThat(outcome()).containsExactlyInAnyOrder();
inLeft.pipeInput(G);
- assertThat(noResult());
+ assertThat(outcome()).containsExactlyInAnyOrder();
}
- boolean noResult()
- {
- return outJoined.isEmpty();
- }
-
TestRecord<String, String> recordOf(String value, int second)
{
- return new TestRecord<>("foo", value, T.minusSeconds(second));
+ return new TestRecord<>("foo", value, T.plusSeconds(second));
}
Stream<String> outcome()