TimelineStateHolder { public void resetCursors() { nextCursor = null; previousCursor = null; } TimelineStateHolder();   TimelineStateHolder(TimelineCursor nextCursor, TimelineCursor previousCursor); void resetCursors(); Long positionForNext(); Long positionForPrevious(); void setNextCursor(TimelineCursor timelineCursor); void setPreviousCursor(TimelineCursor timelineCursor); void setCursorsIfNull(TimelineCursor timelineCursor); boolean startTimelineRequest(); void finishTimelineRequest(); final AtomicBoolean requestInFlight; }
@Test public void testResetCursors() { final TimelineStateHolder holder = new TimelineStateHolder(TEST_TIMELINE_CURSOR, TEST_TIMELINE_CURSOR); holder.resetCursors(); assertNull(holder.nextCursor); assertNull(holder.previousCursor); }