JAL-2110 pass dataset to makeCDSalignment
authorJim Procter <jprocter@issues.jalview.org>
Mon, 20 Jun 2016 09:00:17 +0000 (10:00 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 20 Jun 2016 09:00:17 +0000 (10:00 +0100)
test/jalview/analysis/AlignmentUtilsTests.java

index afa6edb..0f4655d 100644 (file)
@@ -1040,6 +1040,7 @@ public class AlignmentUtilsTests
     /*
      * verify that mapping sets for dna and cds alignments are different 
      */
+    // select -> subselect type to test.
     Assert.assertNotSame(dna.getCodonFrames(), cds.getCodonFrames());
     assertEquals(4, dna.getCodonFrames());
     assertEquals(4, cds.getCodonFrames());
@@ -1164,7 +1165,7 @@ public class AlignmentUtilsTests
      * execute method under test
      */
     AlignmentI cdsal = AlignmentUtils.makeCdsAlignment(
-            new SequenceI[] { dna1 }, dna);
+            new SequenceI[] { dna1 }, dna.getDataset());
 
     /*
      * Verify we have 3 cds sequences, mapped to pep1/2/3 respectively
@@ -1532,7 +1533,7 @@ public class AlignmentUtilsTests
     dna.addCodonFrame(acf);
   
     AlignmentI cds = AlignmentUtils.makeCdsAlignment(new SequenceI[] {
-        dna1, dna2, dna3 }, dna);
+        dna1, dna2, dna3 }, dna.getDataset());
     List<SequenceI> cdsSeqs = cds.getSequences();
     assertEquals(2, cdsSeqs.size());
     assertEquals("GGGCCCTTTGGG", cdsSeqs.get(0).getSequenceAsString());