JAL-3026 updated featurecolourtooltip method signature in tests
authorJim Procter <jprocter@issues.jalview.org>
Wed, 18 Jul 2018 16:23:17 +0000 (17:23 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 18 Jul 2018 16:23:17 +0000 (17:23 +0100)
test/jalview/gui/FeatureSettingsTest.java

index db37733..bf905fb 100644 (file)
@@ -197,20 +197,20 @@ public class FeatureSettingsTest
   @Test(groups = "Functional")
   public void testGetColorTooltip() throws IOException
   {
-    assertNull(FeatureSettings.getColorTooltip(null));
+    assertNull(FeatureSettings.getColorTooltip(null,false));
 
     /*
      * simple colour
      */
     FeatureColourI fc = new FeatureColour(Color.black);
     String simpleTooltip = "Click to edit, right-click for menu";
-    assertEquals(FeatureSettings.getColorTooltip(fc), simpleTooltip);
+    assertEquals(FeatureSettings.getColorTooltip(fc,false), simpleTooltip);
 
     /*
      * graduated colour tooltip includes description of colour
      */
     fc.setColourByLabel(true);
-    assertEquals(FeatureSettings.getColorTooltip(fc),
+    assertEquals(FeatureSettings.getColorTooltip(fc,false),
             "<html>By Label<br>" + simpleTooltip + "</br></html>");
 
     /*
@@ -219,11 +219,11 @@ public class FeatureSettingsTest
     fc = new FeatureColour(Color.red, Color.blue, 2f, 10f);
     fc.setBelowThreshold(true);
     fc.setThreshold(4f);
-    assertEquals(FeatureSettings.getColorTooltip(fc),
+    assertEquals(FeatureSettings.getColorTooltip(fc,false),
             "<html>By Score (&lt; 4.0)<br>" + simpleTooltip
                     + "</br></html>");
     fc.setAboveThreshold(true);
-    assertEquals(FeatureSettings.getColorTooltip(fc),
+    assertEquals(FeatureSettings.getColorTooltip(fc,false),
             "<html>By Score (&gt; 4.0)<br>" + simpleTooltip
                     + "</br></html>");
   }