From: Jim Procter Date: Tue, 5 Apr 2016 17:35:56 +0000 (+0100) Subject: JAL-2046 revise test for ambiguous case X-Git-Tag: Release_2_10_0~249^2~31^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d1dcf07f3a505db364405c4f4c901219213c8f25;p=jalview.git JAL-2046 revise test for ambiguous case --- diff --git a/test/jalview/datamodel/SequenceTest.java b/test/jalview/datamodel/SequenceTest.java index 3165ec9..a66a331 100644 --- a/test/jalview/datamodel/SequenceTest.java +++ b/test/jalview/datamodel/SequenceTest.java @@ -326,11 +326,10 @@ public class SequenceTest /* * SequenceFeature on dataset sequence only + * Note JAL-2046: spurious: we have no use case for setting a non-dataset sequence's feature array to null at the moment. */ sq.setSequenceFeatures(null); - sfs = sq.getSequenceFeatures(); - assertEquals(1, sfs.length); - assertSame(sf2, sfs[0]); + assertNull(sq.getDatasetSequence().getSequenceFeatures()); /* * Corrupt case - no SequenceFeature, dataset's dataset is the original