@Test public void generateUniqueIdFromNonAlphaNum() { assertEquals("I:_.-", this.idGenerator.generateUniqueId(":_.-")); assertEquals("Iwithspace", this.idGenerator.generateUniqueId("with space")); assertEquals("Iwithtab", this.idGenerator.generateUniqueId("with\ttab")); assertEquals("I5BC67801", this.idGenerator.generateUniqueId("\u5BC6\u7801")); assertEquals("I3D", this.idGenerator.generateUniqueId("=")); }
public String generateUniqueId(String text) { return generateUniqueId("I", text); }
IdGenerator { public String generateUniqueId(String text) { return generateUniqueId("I", text); } }
IdGenerator { public String generateUniqueId(String text) { return generateUniqueId("I", text); } IdGenerator();  IdGenerator(IdGenerator idGenerator); }
IdGenerator { public String generateUniqueId(String text) { return generateUniqueId("I", text); } IdGenerator();  IdGenerator(IdGenerator idGenerator); String generateUniqueId(String text); String generateUniqueId(String prefix, String text); void remove(String id); void reset(); }
IdGenerator { public String generateUniqueId(String text) { return generateUniqueId("I", text); } IdGenerator();  IdGenerator(IdGenerator idGenerator); String generateUniqueId(String text); String generateUniqueId(String prefix, String text); void remove(String id); void reset();  }