@Test public void testCreateUuid() throws Exception { String subject = Utils.createUuid(); UUID testUUID = UUID.fromString(subject); String otherSubject = Utils.createUuid(); Assert.assertNotEquals("Two UUIDs generated by different calls should not be the same.", subject, otherSubject); }
public static String createUuid() { return UUID.randomUUID().toString(); }
Utils { public static String createUuid() { return UUID.randomUUID().toString(); } }
Utils { public static String createUuid() { return UUID.randomUUID().toString(); } private  Utils(); }
Utils { public static String createUuid() { return UUID.randomUUID().toString(); } private  Utils(); static Map<String, Object> makeError(String errorMessage, String errorCause, String errorPart); static Response getErrorResponse(String id, int status,
                                            String message, String context); static String createUuid(); static long parseDate(String value); static long parseDuration(String v); static String jsonStringFromObject(Object object); static ObjectMapper getObjectMapper(); }
Utils { public static String createUuid() { return UUID.randomUUID().toString(); } private  Utils(); static Map<String, Object> makeError(String errorMessage, String errorCause, String errorPart); static Response getErrorResponse(String id, int status,
                                            String message, String context); static String createUuid(); static long parseDate(String value); static long parseDuration(String v); static String jsonStringFromObject(Object object); static ObjectMapper getObjectMapper(); static final String NOW; static final String DEFAULT_START_TIME; static final String DEFAULT_END_TIME; static final String NOT_SPECIFIED; static final String CLIENT_ID; static final String ERRORS; static final String ERROR_MESSAGE; static final String ERROR_CAUSE; static final String ERROR_PART; static final String START; static final String END; static final String COUNT; static final double DEFAULT_DOWNSAMPLE_MULTIPLIER; static final int DAYS_PER_YEAR; static final int DAYS_PER_WEEK; static final int HOURS_PER_DAY; static final int MINUTES_PER_HOUR; static final int SECONDS_PER_MINUTE; static final int SECONDS_PER_HOUR; static final int SECONDS_PER_DAY; static final int SECONDS_PER_WEEK; static final int SECONDS_PER_YEAR; }