JAL-2110 enable and fix test
authorJim Procter <jprocter@issues.jalview.org>
Thu, 23 Jun 2016 13:06:10 +0000 (14:06 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 23 Jun 2016 13:06:10 +0000 (14:06 +0100)
test/jalview/analysis/CrossRefTest.java

index eab8d5d..abe713a 100644 (file)
@@ -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());