From d1dcf07f3a505db364405c4f4c901219213c8f25 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 5 Apr 2016 18:35:56 +0100 Subject: [PATCH] JAL-2046 revise test for ambiguous case --- test/jalview/datamodel/SequenceTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 1.7.10.2