Added one more minimal test case to TimeBasedUuidGeneratorTest

This commit is contained in:
Trustin Lee 2008-08-25 04:01:07 +00:00
parent 6b995456fe
commit d2c157d32d

View File

@ -40,7 +40,14 @@ import org.junit.Test;
*
*/
public class TimeBasedUuidGeneratorTest {
private static final int COUNT = 1048576;
private static final int COUNT = 100000;
@Test
public void shouldGenerateTimeBasedUuid() {
UUID uuid = TimeBasedUuidGenerator.generate();
assertEquals(1, uuid.version());
assertEquals(2, uuid.variant());
}
@Test
public void shouldNotDuplicate() {