use of org.apache.flink.runtime.operators.coordination.OperatorEvent in project flink by apache.
the class SourceOperatorAlignmentTest method assertLatestReportedWatermarkEvent.
private void assertLatestReportedWatermarkEvent(SourceOperatorTestContext context, long expectedWatermark) {
List<OperatorEvent> events = context.getGateway().getEventsSent().stream().filter(event -> event instanceof ReportedWatermarkEvent).collect(Collectors.toList());
assertFalse(events.isEmpty());
assertEquals(new ReportedWatermarkEvent(expectedWatermark), events.get(events.size() - 1));
}
Aggregations