From: gmungoc Date: Thu, 6 Feb 2020 16:58:11 +0000 (+0000) Subject: JAL-1842 unit test updated for EnsemblGene feature settings changes X-Git-Tag: Release_2_11_1_1~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-3509hideResnum;p=jalview.git JAL-1842 unit test updated for EnsemblGene feature settings changes --- diff --git a/test/jalview/ext/ensembl/EnsemblGeneTest.java b/test/jalview/ext/ensembl/EnsemblGeneTest.java index 8b1e840..ef12ed4 100644 --- a/test/jalview/ext/ensembl/EnsemblGeneTest.java +++ b/test/jalview/ext/ensembl/EnsemblGeneTest.java @@ -271,18 +271,24 @@ public class EnsemblGeneTest /** * Check behaviour of feature colour scheme for EnsemblGene sequences. - * Currently coded to display exon and sequence_variant (or sub-types) only, - * with sequence_variant in red above exon coloured by label. + * Currently coded to hide all except exon and sequence_variant (or sub-types) + * only, with sequence_variant in red above exon coloured by label. */ @Test(groups = "Functional") public void testGetFeatureColourScheme() { FeatureSettingsModelI fc = new EnsemblGene().getFeatureColourScheme(); - assertTrue(fc.isFeatureDisplayed("exon")); - assertTrue(fc.isFeatureDisplayed("coding_exon")); // subtype of exon - assertTrue(fc.isFeatureDisplayed("sequence_variant")); - assertTrue(fc.isFeatureDisplayed("feature_variant")); // subtype - assertFalse(fc.isFeatureDisplayed("transcript")); + assertFalse(fc.isFeatureDisplayed("exon")); + assertFalse(fc.isFeatureHidden("exon")); + assertFalse(fc.isFeatureDisplayed("coding_exon")); // subtype of exon + assertFalse(fc.isFeatureHidden("coding_exon")); // subtype of exon + assertFalse(fc.isFeatureDisplayed("sequence_variant")); + assertFalse(fc.isFeatureHidden("sequence_variant")); + assertFalse(fc.isFeatureDisplayed("feature_variant")); // subtype + assertFalse(fc.isFeatureHidden("feature_variant")); // subtype + assertTrue(fc.isFeatureHidden("transcript")); + assertTrue(fc.isFeatureHidden("CDS")); + assertEquals(Color.RED, fc.getFeatureColour("sequence_variant") .getColour()); assertEquals(Color.RED, fc.getFeatureColour("feature_variant")