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_2_0~40^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ea7cb215b63bdbb0e7cb748d8f28cbf36417c519;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")