JAL-3748 more tests verifying reconstruction of AlignemntView for linked CDS/Protein...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 23 Sep 2020 15:39:51 +0000 (16:39 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 23 Sep 2020 15:39:51 +0000 (16:39 +0100)
test/jalview/gui/SplitFrameTest.java

index f0ea255..f9ef572 100644 (file)
@@ -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");
   }
 }