From: gmungoc Date: Mon, 31 Jul 2017 08:36:34 +0000 (+0200) Subject: JAL-2631 test updated for added kd graduated feature colour X-Git-Tag: Release_2_10_3b1~132^2~31^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=86b6ba5e66a241aae7bc83edc7386426bcd99513;p=jalview.git JAL-2631 test updated for added kd graduated feature colour --- diff --git a/test/jalview/io/FeaturesFileTest.java b/test/jalview/io/FeaturesFileTest.java index d6f1e8b..cc7dca0 100644 --- a/test/jalview/io/FeaturesFileTest.java +++ b/test/jalview/io/FeaturesFileTest.java @@ -75,9 +75,13 @@ public class FeaturesFileTest * updated - JAL-1904), and verify (some) feature group colours */ colours = af.getFeatureRenderer().getFeatureColours(); - assertEquals("26 feature group colours not found", 26, colours.size()); + assertEquals("27 feature group colours not found", 27, colours.size()); assertEquals(colours.get("Cath").getColour(), new Color(0x93b1d1)); assertEquals(colours.get("ASX-MOTIF").getColour(), new Color(0x6addbb)); + FeatureColourI kdColour = colours.get("kdHydrophobicity"); + assertTrue(kdColour.isGraduatedColour()); + assertTrue(kdColour.isAboveThreshold()); + assertEquals(-2f, kdColour.getThreshold()); /* * verify (some) features on sequences