*
* @throws RemoteException if the test fails
*/
@Test
public void testSetElapsedTime2() throws RemoteException {
StopWatch watch = new StopWatch("watch");
List<Long> expectedValues = new ArrayList<Long>();
List<Long> expectedStamps = new ArrayList<Long>();
checkData(expectedValues, expectedStamps, watch);
for (int i = 0; i < 10; i++) {
long value = Math.round(Math.random() * 100);
long stamp = Math.round(Math.random() * 100);
watch.setElapsedTime(value, stamp);
expectedValues.add(value);
expectedStamps.add(stamp);
checkData(expectedValues, expectedStamps, watch);
}
Utils.close(watch.getWatchDataSource());
}