@Test public void testGenerateRandomIdWithNoDashes() { String idWithoutDashes = LocalStringsUtils.generateRandomId(true); int dashIndex = idWithoutDashes.indexOf("-"); Assert.assertEquals(-1, dashIndex); }
public static String generateRandomId(boolean removeDashes) { String uuid = UUID.randomUUID().toString(); if (removeDashes) { uuid = uuid.replace("-", ""); } return uuid; }
LocalStringsUtils { public static String generateRandomId(boolean removeDashes) { String uuid = UUID.randomUUID().toString(); if (removeDashes) { uuid = uuid.replace("-", ""); } return uuid; } }
LocalStringsUtils { public static String generateRandomId(boolean removeDashes) { String uuid = UUID.randomUUID().toString(); if (removeDashes) { uuid = uuid.replace("-", ""); } return uuid; } private  LocalStringsUtils(); }
LocalStringsUtils { public static String generateRandomId(boolean removeDashes) { String uuid = UUID.randomUUID().toString(); if (removeDashes) { uuid = uuid.replace("-", ""); } return uuid; } private  LocalStringsUtils(); static boolean isNullOrEmpty(String value); static String populateRequiredStringWithNullValue(String value, String parameterName, String telemetryType); static String generateRandomId(boolean removeDashes); static String generateRandomIntegerId(); static DateFormat getDateFormatter(); }
LocalStringsUtils { public static String generateRandomId(boolean removeDashes) { String uuid = UUID.randomUUID().toString(); if (removeDashes) { uuid = uuid.replace("-", ""); } return uuid; } private  LocalStringsUtils(); static boolean isNullOrEmpty(String value); static String populateRequiredStringWithNullValue(String value, String parameterName, String telemetryType); static String generateRandomId(boolean removeDashes); static String generateRandomIntegerId(); static DateFormat getDateFormatter();  }