From 2bc2eea0112451e462f90fd0a07e82ca7d20f689 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 6 Feb 2020 16:58:11 +0000 Subject: [PATCH] JAL-1842 unit test updated for EnsemblGene feature settings changes --- test/jalview/ext/ensembl/EnsemblGeneTest.java | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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") -- 1.7.10.2