@Test public void testWithSecondDelimiter() { Map<String, String> hashMap = new HashMap<String, String>(); hashMap.put("key1", "value1"); NaturalKeyDescriptor naturalKeyDescriptor = new NaturalKeyDescriptor(); naturalKeyDescriptor.setNaturalKeys(hashMap); naturalKeyDescriptor.setEntityType("entity~"); naturalKeyDescriptor.setTenantId("Type"); String deterministicId = deterministicUUIDGeneratorStrategy.generateId(naturalKeyDescriptor); NaturalKeyDescriptor naturalKeyDescriptor2 = new NaturalKeyDescriptor(); naturalKeyDescriptor2.setNaturalKeys(hashMap); naturalKeyDescriptor2.setEntityType("entity"); naturalKeyDescriptor2.setTenantId("~Type"); String deterministicId2 = deterministicUUIDGeneratorStrategy.generateId(naturalKeyDescriptor2); Assert.assertFalse("Ids should not be the same: ", deterministicId.equals(deterministicId2)); }
@Override public String generateId() { return uuidStrategy.generateId(); }
DeterministicUUIDGeneratorStrategy implements UUIDGeneratorStrategy { @Override public String generateId() { return uuidStrategy.generateId(); } }
DeterministicUUIDGeneratorStrategy implements UUIDGeneratorStrategy { @Override public String generateId() { return uuidStrategy.generateId(); }  }
DeterministicUUIDGeneratorStrategy implements UUIDGeneratorStrategy { @Override public String generateId() { return uuidStrategy.generateId(); }  @Override String generateId(); @Override String generateId(NaturalKeyDescriptor naturalKeyDescriptor); }
DeterministicUUIDGeneratorStrategy implements UUIDGeneratorStrategy { @Override public String generateId() { return uuidStrategy.generateId(); }  @Override String generateId(); @Override String generateId(NaturalKeyDescriptor naturalKeyDescriptor); static final String DIGEST_ALGORITHM; }