@Test public void testLongAlphaMode() { for (final String color : shortColor) { assertFalse(generateInvalidColorMsg(color), ColorValidator.isLongMode(color)); } for (final String color : shortAlphaColor) { assertFalse(generateInvalidColorMsg(color), ColorValidator.isLongMode(color)); } for (final String color : longColor) { assertFalse(generateInvalidColorMsg(color), ColorValidator.isLongMode(color)); } for (final String color : longAlphaColor) { assertTrue(generateValidColorMsg(color), ColorValidator.isLongMode(color)); } }
public static boolean isLongMode(@Nullable final String toCheck) { return isColor(toCheck, 8); }
ColorValidator { public static boolean isLongMode(@Nullable final String toCheck) { return isColor(toCheck, 8); } }
ColorValidator { public static boolean isLongMode(@Nullable final String toCheck) { return isColor(toCheck, 8); } private  ColorValidator(); }
ColorValidator { public static boolean isLongMode(@Nullable final String toCheck) { return isColor(toCheck, 8); } private  ColorValidator(); static boolean isValid(@Nullable final String toCheck); static boolean isShortMode(@Nullable final String toCheck); static boolean isShortModeWithoutAlpha(@Nullable final String toCheck); static boolean isLongMode(@Nullable final String toCheck); static boolean isLongModeWithoutAlpha(@Nullable final String toCheck); }
ColorValidator { public static boolean isLongMode(@Nullable final String toCheck) { return isColor(toCheck, 8); } private  ColorValidator(); static boolean isValid(@Nullable final String toCheck); static boolean isShortMode(@Nullable final String toCheck); static boolean isShortModeWithoutAlpha(@Nullable final String toCheck); static boolean isLongMode(@Nullable final String toCheck); static boolean isLongModeWithoutAlpha(@Nullable final String toCheck);  }