Color implements ConfigurationSerializable { public static Color fromBGR(int blue, int green, int red) throws IllegalArgumentException { return new Color(red, green, blue); } private  Color(int red, int green, int blue); static Color fromRGB(int red, int green, int blue); static Color fromBGR(int blue, int green, int red); static Color fromRGB(int rgb); static Color fromBGR(int bgr); int getRed(); Color setRed(int red); int getGreen(); Color setGreen(int green); int getBlue(); Color setBlue(int blue); int asRGB(); int asBGR(); Color mixDyes(DyeColor... colors); Color mixColors(Color... colors); @Override boolean equals(Object o); @Override int hashCode(); Map<String, Object> serialize(); @SuppressWarnings("javadoc") static Color deserialize(Map<String, Object> map); @Override String toString(); static final Color WHITE; static final Color SILVER; static final Color GRAY; static final Color BLACK; static final Color RED; static final Color MAROON; static final Color YELLOW; static final Color OLIVE; static final Color LIME; static final Color GREEN; static final Color AQUA; static final Color TEAL; static final Color BLUE; static final Color NAVY; static final Color FUCHSIA; static final Color PURPLE; static final Color ORANGE; }
@Test(expected=IllegalArgumentException.class) public void testInvalidBGR1() { Color.fromBGR(0x01000000); }
@Test(expected=IllegalArgumentException.class) public void testInvalidBGR2() { Color.fromBGR(Integer.MIN_VALUE); }
@Test(expected=IllegalArgumentException.class) public void testInvalidBGR3() { Color.fromBGR(Integer.MAX_VALUE); }
@Test(expected=IllegalArgumentException.class) public void testInvalidBGR4() { Color.fromBGR(-1); }
@Test(expected=IllegalArgumentException.class) public void testInvalidR05() { Color.fromBGR(0x00, 0x00, -1); }
@Test(expected=IllegalArgumentException.class) public void testInvalidR06() { Color.fromBGR(0x00, 0x00, Integer.MAX_VALUE); }
@Test(expected=IllegalArgumentException.class) public void testInvalidR07() { Color.fromBGR(0x00, 0x00, Integer.MIN_VALUE); }
@Test(expected=IllegalArgumentException.class) public void testInvalidR08() { Color.fromBGR(0x00, 0x00, 0x100); }
@Test(expected=IllegalArgumentException.class) public void testInvalidB05() { Color.fromBGR(-1, 0x00, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidB06() { Color.fromBGR(Integer.MAX_VALUE, 0x00, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidB07() { Color.fromBGR(Integer.MIN_VALUE, 0x00, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidB08() { Color.fromBGR(0x100, 0x00, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidG05() { Color.fromBGR(0x00, -1, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidG06() { Color.fromBGR(0x00, Integer.MAX_VALUE, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidG07() { Color.fromBGR(0x00, Integer.MIN_VALUE, 0x00); }
@Test(expected=IllegalArgumentException.class) public void testInvalidG08() { Color.fromBGR(0x00, 0x100, 0x00); }