use of org.apache.kafka.streams.kstream.internals.TimeWindow in project kafka by apache.
the class TimeWindowsTest method shouldComputeWindowsForTumblingWindows.
@Test
public void shouldComputeWindowsForTumblingWindows() {
TimeWindows windows = TimeWindows.of(12L);
Map<Long, TimeWindow> matched = windows.windowsFor(21L);
assertEquals(1, matched.size());
assertEquals(new TimeWindow(12L, 24L), matched.get(12L));
}
Aggregations