@Test public void shouldHaveSuffix() { String expectedSuffix = "_id"; Map<String, String> hashMap = new HashMap<String, String>(); hashMap.put("key1", "value1"); NaturalKeyDescriptor naturalKeyDescriptor = new NaturalKeyDescriptor(); naturalKeyDescriptor.setNaturalKeys(hashMap); naturalKeyDescriptor.setEntityType("testEntityType"); naturalKeyDescriptor.setTenantId("testTenantId"); String deterministicId = deterministicUUIDGeneratorStrategy.generateId(naturalKeyDescriptor); boolean hasSuffix = deterministicId.endsWith(expectedSuffix); Assert.assertTrue("Incorrect suffix: " + deterministicId, hasSuffix); }
@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; }