From e0edb0ed96bfc357e1ad4cf06c50d630c41a52a3 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 20 Jun 2016 10:00:17 +0100 Subject: [PATCH] JAL-2110 pass dataset to makeCDSalignment --- test/jalview/analysis/AlignmentUtilsTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/jalview/analysis/AlignmentUtilsTests.java b/test/jalview/analysis/AlignmentUtilsTests.java index afa6edb..0f4655d 100644 --- a/test/jalview/analysis/AlignmentUtilsTests.java +++ b/test/jalview/analysis/AlignmentUtilsTests.java @@ -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 cdsSeqs = cds.getSequences(); assertEquals(2, cdsSeqs.size()); assertEquals("GGGCCCTTTGGG", cdsSeqs.get(0).getSequenceAsString()); -- 1.7.10.2