@Test public void generateUniqueId() { assertEquals("Itext", this.idGenerator.generateUniqueId("text")); assertEquals("Itext-1", this.idGenerator.generateUniqueId("te xt")); }
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();  }