use of com.palantir.timestamp.TimestampRange in project atlasdb by palantir.
the class LegacyTimelockServiceTest method freshTimestampsDelegatesToTimestampService.
@Test
public void freshTimestampsDelegatesToTimestampService() {
int numTimestamps = 10;
TimestampRange range = TimestampRange.createInclusiveRange(21L, 30L);
when(timestampService.getFreshTimestamps(numTimestamps)).thenReturn(range);
assertEquals(range, timelock.getFreshTimestamps(numTimestamps));
}
Aggregations