JAL-3719 patch test for user colour scheme with/out gap color
authorJim Procter <jprocter@issues.jalview.org>
Wed, 19 Aug 2020 18:00:38 +0000 (19:00 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 19 Aug 2020 18:00:38 +0000 (19:00 +0100)
test/jalview/renderer/ResidueColourFinderTest.java

index 81fb2c0..447bc73 100644 (file)
@@ -119,11 +119,11 @@ public class ResidueColourFinderTest
     }
 
     av.setGlobalColourScheme(new UserColourScheme(newColours));
-
-    // gap colour not specified so gap colour is null
-    // this is consistent with previous behaviour, but may not be correct?
-    assertEquals(null, rcf.getResidueColour(true, av.getResidueShading(),
+    rcf = new ResidueColourFinder(Color.blue);
+    // gap colour not specified so gap colour is default for RCF
+    assertEquals(Color.blue, rcf.getResidueColour(true, av.getResidueShading(),
             null, seq, 3, null));
+    
 
     newColours[23] = Color.pink;
     av.setGlobalColourScheme(new UserColourScheme(newColours));