JAL-2631 test updated for added kd graduated feature colour
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Jul 2017 08:36:34 +0000 (10:36 +0200)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Jul 2017 08:36:34 +0000 (10:36 +0200)
test/jalview/io/FeaturesFileTest.java

index d6f1e8b..cc7dca0 100644 (file)
@@ -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