INT-1188, change the second argument from combination or MAC+nano to MAC+processId

This commit is contained in:
Oleg Zhurakousky
2010-06-20 18:52:36 +00:00
parent 2678280dc6
commit 2aedd0d33e
2 changed files with 17 additions and 12 deletions

View File

@@ -32,9 +32,11 @@ public class TimeBasedUUIDGeneratorTests {
@Test
public void testGreaterThen(){
UUID id = TimeBasedUUIDGenerator.generateId();
for (int i = 0; i < 1000; i++) {
UUID newId = TimeBasedUUIDGenerator.generateId();
//System.out.println(newId);
// tests, that newly created UUID is always greater then the previous one.
Assert.assertTrue(newId.compareTo(id) == 1);
id = newId;