ColorNames { @Pure public static Set<String> getColorNames() { return Collections.unmodifiableSet(COLOR_MATCHES.keySet()); } private  ColorNames(); @Pure static Set<String> getColorNames(); @Pure static Map<String, Integer> getColorDefinitions(); @Pure static int getColorFromName(String colorName, int defaultValue); @Pure static Integer getColorFromName(String colorName); @Pure static String getColorNameFromValue(int colorValue); static final String TRANSPARENT; static final String WHITE; static final String LIGHT_GRAY; static final String GRAY; static final String DARK_GRAY; static final String BLACK; static final String RED; static final String PINK; static final String ORANGE; static final String YELLOW; static final String GREEN; static final String MAGENTA; static final String CYAN; static final String BLUE; }
@Test public void getColorNames() { Set<String> names = new TreeSet<>(ColorNames.getColorNames()); for (String nm : NAMES) { assertTrue(names.remove(nm), "Missed name: " + nm); } assertEquals(0, names.size()); }