From: Jim Procter Date: Thu, 23 Jun 2016 13:06:10 +0000 (+0100) Subject: JAL-2110 enable and fix test X-Git-Tag: Release_2_10_0~140^2~5^2~44 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=203a256b7870f70a873e7795602755fb17c3c99f;p=jalview.git JAL-2110 enable and fix test --- diff --git a/test/jalview/analysis/CrossRefTest.java b/test/jalview/analysis/CrossRefTest.java index eab8d5d..abe713a 100644 --- a/test/jalview/analysis/CrossRefTest.java +++ b/test/jalview/analysis/CrossRefTest.java @@ -92,7 +92,7 @@ public class CrossRefTest * which may be direct (dbrefs on the sequence), or indirect (dbrefs on * sequences which share a dbref with the sequence */ - @Test(groups = { "Functional" }, enabled = false) + @Test(groups = { "Functional" }, enabled = true) public void testFindXrefSourcesForSequence_proteinToDna() { SequenceI seq = new Sequence("Seq1", "MGKYQARLSS"); @@ -122,8 +122,7 @@ public class CrossRefTest sources = new CrossRef(new SequenceI[] { seq }, al) .findXrefSourcesForSequences(false); assertEquals(4, sources.size()); - assertEquals("[EMBL, EMBLCDS, GENEDB, ENSEMBL]", - sources.toString()); + assertEquals("[EMBL, EMBLCDS, GENEDB, ENSEMBL]", sources.toString()); /* * add a sequence to the alignment which has a dbref to UNIPROT|A1234 @@ -139,7 +138,7 @@ public class CrossRefTest seq2.addDBRef(new DBRefEntry("GENEDB", "0", "E2348")); // TODO include ENSEMBLGENOMES in DBRefSource.DNACODINGDBS ? al.addSequence(seq2); - sources = new CrossRef(new SequenceI[] { seq }, al) + sources = new CrossRef(new SequenceI[] { seq, seq2 }, al) .findXrefSourcesForSequences(false); assertEquals(3, sources.size()); assertEquals("[EMBLCDS, EMBL, GENEDB]", sources.toString());