@Test public void testReturnSingle() { long startTime = 1411663170112L; int timeStep = 5000; TimeStampProvider tm = new TimeStampProvider(startTime, timeStep, 0); long tStamp = tm.next(); assertEquals("First generated timestamp should match starttime", startTime, tStamp); }
public long next() { return currentTime += timeStep; }
TimeStampProvider { public long next() { return currentTime += timeStep; } }
TimeStampProvider { public long next() { return currentTime += timeStep; } TimeStampProvider(long startTime, int timeStep, int sendInterval); }
TimeStampProvider { public long next() { return currentTime += timeStep; } TimeStampProvider(long startTime, int timeStep, int sendInterval); long next(); long[] timestampsForNextInterval(); }
TimeStampProvider { public long next() { return currentTime += timeStep; } TimeStampProvider(long startTime, int timeStep, int sendInterval); long next(); long[] timestampsForNextInterval();  }