From 10be3b2413aa245f773a3afd0642812fcc73b3ff Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 18 Jul 2018 17:23:17 +0100 Subject: [PATCH] JAL-3026 updated featurecolourtooltip method signature in tests --- test/jalview/gui/FeatureSettingsTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/jalview/gui/FeatureSettingsTest.java b/test/jalview/gui/FeatureSettingsTest.java index db37733..bf905fb 100644 --- a/test/jalview/gui/FeatureSettingsTest.java +++ b/test/jalview/gui/FeatureSettingsTest.java @@ -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), "By Label
" + simpleTooltip + "
"); /* @@ -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), "By Score (< 4.0)
" + simpleTooltip + "
"); fc.setAboveThreshold(true); - assertEquals(FeatureSettings.getColorTooltip(fc), + assertEquals(FeatureSettings.getColorTooltip(fc,false), "By Score (> 4.0)
" + simpleTooltip + "
"); } -- 1.7.10.2