From e562556addb433f911f65beba98b8d12d3f5a6b9 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 29 Aug 2016 11:59:47 +0100 Subject: [PATCH] JAL-2154 additional test that removing a duplicate sequence reinstates dataset reference validity --- test/jalview/datamodel/AlignmentTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/jalview/datamodel/AlignmentTest.java b/test/jalview/datamodel/AlignmentTest.java index 2863340..fe76df5 100644 --- a/test/jalview/datamodel/AlignmentTest.java +++ b/test/jalview/datamodel/AlignmentTest.java @@ -419,6 +419,9 @@ public class AlignmentTest al.getDataset().addSequence(sqanotherout); assertVerifyAlignment(al, false, "verify should have failed when a sequence was added twice to the dataset"); + al.getDataset().deleteSequence(sqanotherout); + assertVerifyAlignment(al, true, + "verify should have passed after duplicate entry for sequence was removed"); } /* -- 1.7.10.2