use of org.apache.flink.api.common.eventtime.WatermarksWithIdleness.IdlenessTimer in project flink by apache.
the class WatermarksWithIdlenessTest method testActiveAfterIdleness.
@Test
public void testActiveAfterIdleness() {
final ManualClock clock = new ManualClock(System.nanoTime());
final IdlenessTimer timer = createTimerAndMakeIdle(clock, Duration.ofMillis(10));
timer.activity();
assertFalse(timer.checkIfIdle());
}
Aggregations