@Test public void shouldStartWithTheCurrentStoredLimit() { when(boundStore.getUpperLimit()).thenReturn(TIMESTAMP); PersistentUpperLimit brandNewUpperLimit = new PersistentUpperLimit(boundStore); assertThat(brandNewUpperLimit.get(), is(TIMESTAMP)); }
public long get() { return currentLimit; }
PersistentUpperLimit { public long get() { return currentLimit; } }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); long get(); void increaseToAtLeast(long newLimit); }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); long get(); void increaseToAtLeast(long newLimit);  }