Using java.util.UUID and default strategy is: UUID.randomUUUID() (INT-111).

This commit is contained in:
Mark Fisher
2008-02-18 14:08:15 +00:00
parent dc6f6a5f44
commit d1ed700380
11 changed files with 78 additions and 311 deletions

View File

@@ -23,12 +23,12 @@ import org.junit.Test;
/**
* @author Mark Fisher
*/
public class RandomGuidUidGeneratorTests {
public class RandomUuidGeneratorTests {
@Test
public void testGeneratedIdIsNotNull() {
UidGenerator generator = new RandomGuidUidGenerator();
Object id = generator.generateUid();
IdGenerator generator = new RandomUuidGenerator();
Object id = generator.generateId();
assertNotNull(id);
}