@Test public void testMakeRandomId() { String id = StringUtils.makeRandomId(10); Assert.assertTrue("random id had wrong length", id.length() == 10); }
public static String makeRandomId(int length) { char[] chars = new char[length]; for (int ix = 0; ix < length; ix++) chars[ix] = (char) (65 + rand.nextInt(26)); return new String(chars); }
StringUtils { public static String makeRandomId(int length) { char[] chars = new char[length]; for (int ix = 0; ix < length; ix++) chars[ix] = (char) (65 + rand.nextInt(26)); return new String(chars); } }
StringUtils { public static String makeRandomId(int length) { char[] chars = new char[length]; for (int ix = 0; ix < length; ix++) chars[ix] = (char) (65 + rand.nextInt(26)); return new String(chars); }  }
StringUtils { public static String makeRandomId(int length) { char[] chars = new char[length]; for (int ix = 0; ix < length; ix++) chars[ix] = (char) (65 + rand.nextInt(26)); return new String(chars); }  static String escapeHTMLEntities(String value); static void escapeHTMLEntities(String value, Writer out); static String makeRandomId(int length); static String normalizeId(String name); }
StringUtils { public static String makeRandomId(int length) { char[] chars = new char[length]; for (int ix = 0; ix < length; ix++) chars[ix] = (char) (65 + rand.nextInt(26)); return new String(chars); }  static String escapeHTMLEntities(String value); static void escapeHTMLEntities(String value, Writer out); static String makeRandomId(int length); static String normalizeId(String name); static final String VERY_UNLIKELY_STRING; }