use of com.hazelcast.jet.core.test.TestSupport.SAME_ITEMS_ANY_ORDER in project hazelcast by hazelcast.
the class SessionWindowPTest method assertCorrectness.
private void assertCorrectness(List<Object> events) {
@SuppressWarnings("unchecked") List<Object> expectedOutput = events.stream().map(e -> ((Entry<String, Long>) e).getKey()).flatMap(SessionWindowPTest::expectedSessions).distinct().collect(toList());
events.add(new Watermark(100));
expectedOutput.add(new Watermark(100));
try {
verifyProcessor(supplier).outputChecker(SAME_ITEMS_ANY_ORDER).input(events).expectOutput(expectedOutput);
} catch (AssertionError e) {
System.err.println("Tested with events: " + events);
throw e;
}
}
use of com.hazelcast.jet.core.test.TestSupport.SAME_ITEMS_ANY_ORDER in project hazelcast-jet by hazelcast.
the class SessionWindowPTest method assertCorrectness.
private void assertCorrectness(List<Object> events) {
List<Object> expectedOutput = events.stream().map(e -> ((Entry<String, Long>) e).getKey()).flatMap(SessionWindowPTest::expectedSessions).distinct().collect(toList());
events.add(new Watermark(100));
expectedOutput.add(new Watermark(100));
try {
verifyProcessor(supplier).outputChecker(SAME_ITEMS_ANY_ORDER).input(events).expectOutput(expectedOutput);
} catch (AssertionError e) {
System.err.println("Tested with events: " + events);
throw e;
}
}
Aggregations