예제 #1
0
  @Test
  public void setFetchCountExceedsUpperBound() {
    int originalFetchCount = timeline.getFetchCount();

    timeline.setFetchCount(Timeline.FETCH_COUNT_UPPER_BOUND + 1);

    assertEquals(originalFetchCount, timeline.getFetchCount());
  }
예제 #2
0
 @Test
 public void initialState() {
   assertTrue(timeline.getFetchCount() > 0);
 }
예제 #3
0
  @Test
  public void setFetchCount() {
    timeline.setFetchCount(NEW_FETCH_COUNT);

    assertEquals(NEW_FETCH_COUNT, timeline.getFetchCount());
  }
예제 #4
0
 @After
 public void tearDown() {
   timeline.dispose();
 }