@Test public void testValidateClientId() { checkClientId("abc", true); checkClientId("abc787", true); checkClientId("ABc3783", false); checkClientId("abc_3333____", true); checkClientId("_abc_3333____", true); checkClientId("_abc_3333_", true); checkClientId("22_12d", true); checkClientId("dd", true); checkClientId("_ _", false); checkClientId("f S", false); checkClientId("343.fsdfsdf", false); checkClientId("343&f", false); checkClientId("juche,", false); }
public static boolean validateClientId(String id) { return id != null && id.matches(CLIENT_ID_REGEX_PATTERN); }
ClientValidator { public static boolean validateClientId(String id) { return id != null && id.matches(CLIENT_ID_REGEX_PATTERN); } }
ClientValidator { public static boolean validateClientId(String id) { return id != null && id.matches(CLIENT_ID_REGEX_PATTERN); } private  ClientValidator(); }
ClientValidator { public static boolean validateClientId(String id) { return id != null && id.matches(CLIENT_ID_REGEX_PATTERN); } private  ClientValidator(); static void assertValidClientId(String clientId); static boolean validateClientId(String id); static boolean validateClientIdLength(String id); }
ClientValidator { public static boolean validateClientId(String id) { return id != null && id.matches(CLIENT_ID_REGEX_PATTERN); } private  ClientValidator(); static void assertValidClientId(String clientId); static boolean validateClientId(String id); static boolean validateClientIdLength(String id); final static String CLIENT_ID_VALID_SYMBOLD; final static String CLIENT_ID_REGEX_PATTERN; final static Integer CLIENT_ID_MAX_LENGTH; final static Integer CLIENT_ID_MIN_LENGTH; }