From: Mateusz Warowny Date: Tue, 14 Mar 2023 14:03:39 +0000 (+0100) Subject: JAL-4146 Patch parseColourString test to expect null for "-1" X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6cbae8a0636d62944faf4c10e144eefb7e628523;p=jalview.git JAL-4146 Patch parseColourString test to expect null for "-1" --- diff --git a/test/jalview/util/ColorUtilsTest.java b/test/jalview/util/ColorUtilsTest.java index 1ee0392..43b14c7 100644 --- a/test/jalview/util/ColorUtilsTest.java +++ b/test/jalview/util/ColorUtilsTest.java @@ -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