From: Jim Procter Date: Wed, 23 Sep 2020 15:39:51 +0000 (+0100) Subject: JAL-3748 more tests verifying reconstruction of AlignemntView for linked CDS/Protein... X-Git-Tag: Release_2_11_1_3~5^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ec60264ef3fc40b2edd23b446a36f6562b2f33a1;p=jalview.git JAL-3748 more tests verifying reconstruction of AlignemntView for linked CDS/Protein alignment and selected region --- diff --git a/test/jalview/gui/SplitFrameTest.java b/test/jalview/gui/SplitFrameTest.java index f0ea255..f9ef572 100644 --- a/test/jalview/gui/SplitFrameTest.java +++ b/test/jalview/gui/SplitFrameTest.java @@ -158,7 +158,7 @@ public class SplitFrameTest // splitframe construction AlignmentI complementDs = requestedBy.getSplitViewContainer() .getComplement(requestedBy).getDataset(); - assertTrue(dnaAf.getViewport().getAlignment().getDataset() == dnaAf + assertTrue(complementDs == dnaAf .getViewport().getAlignment().getDataset()); assertTrue(complementDs == proteinAf.getViewport().getAlignment() .getDataset()); @@ -181,5 +181,10 @@ public class SplitFrameTest // check shape is as expected assertEquals(copyComplement.getWidth(), result.getWidth() * 3); assertEquals(copyComplement.getHeight(), result.getHeight()); + // specific bug with this set - see same CDS for all distinct products + assertTrue( + !copyComplement.getSequenceAt(0).getSequenceAsString().equals( + copyComplement.getSequenceAt(1).getSequenceAsString()), + "Didn't reconstruct CDS correctly"); } }