@Test public void testGenerateRandomClientId() { String clientIdA = Sixpack.generateRandomClientId(); String clientIdB = Sixpack.generateRandomClientId(); assertNotNull(clientIdA); assertNotNull(clientIdB); assertTrue(clientIdA.length() > 0); assertTrue(clientIdB.length() > 0); assertNotEquals(clientIdA, clientIdB); }
public static String generateRandomClientId() { return UUID.randomUUID().toString(); }
Sixpack { public static String generateRandomClientId() { return UUID.randomUUID().toString(); } }
Sixpack { public static String generateRandomClientId() { return UUID.randomUUID().toString(); } Sixpack(final HttpUrl sixpackUrl, final String clientId, final OkHttpClient client);   Sixpack(final SixpackApi api);   Sixpack(final SixpackApi api, final String clientId); }
Sixpack { public static String generateRandomClientId() { return UUID.randomUUID().toString(); } Sixpack(final HttpUrl sixpackUrl, final String clientId, final OkHttpClient client);   Sixpack(final SixpackApi api);   Sixpack(final SixpackApi api, final String clientId); ExperimentBuilder experiment(); String getClientId(); void setLogLevel(LogLevel logLevel); LogLevel getLogLevel(); void setLogger(final Logger logger); static String generateRandomClientId(); }
Sixpack { public static String generateRandomClientId() { return UUID.randomUUID().toString(); } Sixpack(final HttpUrl sixpackUrl, final String clientId, final OkHttpClient client);   Sixpack(final SixpackApi api);   Sixpack(final SixpackApi api, final String clientId); ExperimentBuilder experiment(); String getClientId(); void setLogLevel(LogLevel logLevel); LogLevel getLogLevel(); void setLogger(final Logger logger); static String generateRandomClientId(); static final HttpUrl DEFAULT_URL; static final String NAME_REGEX; static final Pattern NAME_PATTERN; static final LogLevel DEFAULT_LOG_LEVEL; static final String SIXPACK_LOG_TAG; }