@Test public void testUnique() { Object o = RandomGenerator.generate("###X##"); Object o2 = RandomGenerator.generate("###X##"); assertNotNull(o); assertNotNull(o2); assertTrue(o.toString().contains("X")); assertTrue(o2.toString().contains("X")); assertTrue(!o2.equals(o)); }
public static String generate(String pattern) { return createRandomString(pattern, getDefaultCharacterSetMap()); }
RandomGenerator { public static String generate(String pattern) { return createRandomString(pattern, getDefaultCharacterSetMap()); } }
RandomGenerator { public static String generate(String pattern) { return createRandomString(pattern, getDefaultCharacterSetMap()); }  }
RandomGenerator { public static String generate(String pattern) { return createRandomString(pattern, getDefaultCharacterSetMap()); }  static String generate(String pattern); static Object generate(String pattern, Class<?> clazz); }
RandomGenerator { public static String generate(String pattern) { return createRandomString(pattern, getDefaultCharacterSetMap()); }  static String generate(String pattern); static Object generate(String pattern, Class<?> clazz);  }