JAL-4146 Patch parseColourString test to expect null for "-1"
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 14 Mar 2023 14:03:39 +0000 (15:03 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 14 Mar 2023 14:03:39 +0000 (15:03 +0100)
test/jalview/util/ColorUtilsTest.java

index 1ee0392..43b14c7 100644 (file)
@@ -207,7 +207,7 @@ public class ColorUtilsTest
     assertNull(ColorUtils.parseColourString(null));
     assertNull(ColorUtils.parseColourString("rubbish"));
     // from 2.11.2
-    assertEquals(Color.WHITE, ColorUtils.parseColourString("-1"));
+    assertNull(ColorUtils.parseColourString("-1"));
     assertNull(ColorUtils
             .parseColourString(String.valueOf(Integer.MAX_VALUE)));
     assertNull(ColorUtils.parseColourString("100,200,300")); // out of range