From 6cbae8a0636d62944faf4c10e144eefb7e628523 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Tue, 14 Mar 2023 15:03:39 +0100 Subject: [PATCH] JAL-4146 Patch parseColourString test to expect null for "-1" --- test/jalview/util/ColorUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.2