Beispiel #1
0
 public void testStringFromGreen() {
   Assert.assertEquals("Green to String", "green", ColorUtil.colorToString(Color.green));
 }
Beispiel #2
0
 public void testStringFromBlue() {
   Assert.assertEquals("Blue to string", "blue", ColorUtil.colorToString(Color.blue));
 }
Beispiel #3
0
 public void testStringFromOrange() {
   Assert.assertEquals("Orange to string", "orange", ColorUtil.colorToString(Color.orange));
 }
Beispiel #4
0
 public void testStringFromYellow() {
   Assert.assertEquals("Yellow to string", "yellow", ColorUtil.colorToString(Color.yellow));
 }
Beispiel #5
0
 public void testStringFromRed() {
   Assert.assertEquals("Red to String", "red", ColorUtil.colorToString(Color.red));
 }
Beispiel #6
0
 public void testStringFromPink() {
   Assert.assertEquals("Pink to string", "pink", ColorUtil.colorToString(Color.pink));
 }
Beispiel #7
0
 public void testStringFromDarkGray() {
   Assert.assertEquals("DarkGray to string", "darkGray", ColorUtil.colorToString(Color.darkGray));
 }
Beispiel #8
0
 public void testStringFromWhite() {
   Assert.assertEquals("White to string", "white", ColorUtil.colorToString(Color.white));
 }
Beispiel #9
0
 public void testStringFromGray() {
   Assert.assertEquals("Gray to string", "gray", ColorUtil.colorToString(Color.gray));
 }
Beispiel #10
0
 public void testStringFromLightGray() {
   Assert.assertEquals(
       "LightGray to string", "lightGray", ColorUtil.colorToString(Color.lightGray));
 }
Beispiel #11
0
 public void testStringFromBlack() {
   Assert.assertEquals("Black to string", "black", ColorUtil.colorToString(Color.black));
 }
Beispiel #12
0
 public void testStringFromNull() {
   Assert.assertEquals("null to string", "track", ColorUtil.colorToString(null));
 }
Beispiel #13
0
 public void testDefaultStringFromColor() {
   Assert.assertEquals("other to string", "black", ColorUtil.colorToString(new Color(42, 42, 42)));
   jmri.util.JUnitAppender.assertErrorMessage("unknown color sent to colorToString");
 }
Beispiel #14
0
 public void testStringFromCyan() {
   Assert.assertEquals("Cyan to string", "cyan", ColorUtil.colorToString(Color.cyan));
 }
Beispiel #15
0
 public void testStringFromMagenta() {
   Assert.assertEquals("Magenta to string", "magenta", ColorUtil.colorToString(Color.magenta));
 }