JAL-2046 revise test for ambiguous case
authorJim Procter <jprocter@issues.jalview.org>
Tue, 5 Apr 2016 17:35:56 +0000 (18:35 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 5 Apr 2016 17:45:37 +0000 (18:45 +0100)
test/jalview/datamodel/SequenceTest.java

index 3165ec9..a66a331 100644 (file)
@@ -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