From: Jim Procter Date: Tue, 5 Apr 2016 17:36:33 +0000 (+0100) Subject: JAL-2046 RFC about cyclic dataset sequence references - should be disallowed ? X-Git-Tag: Release_2_10_0~249^2~31^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=433fbd04619f73e5283a69888d163e7426d4a400;p=jalview.git JAL-2046 RFC about cyclic dataset sequence references - should be disallowed ? --- diff --git a/test/jalview/datamodel/SequenceTest.java b/test/jalview/datamodel/SequenceTest.java index a66a331..ab11c09 100644 --- a/test/jalview/datamodel/SequenceTest.java +++ b/test/jalview/datamodel/SequenceTest.java @@ -336,6 +336,10 @@ public class SequenceTest * sequence. Test shows no infinite loop results. */ sq.getDatasetSequence().setSequenceFeatures(null); + /** + * is there a usecase for this ? setDatasetSequence should throw an error if + * this actually occurs. + */ sq.getDatasetSequence().setDatasetSequence(sq); // loop! assertNull(sq.getSequenceFeatures()); }