JAL-1601 Fix broken Alignment Annotation test
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 23 Jan 2024 13:42:38 +0000 (14:42 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 23 Jan 2024 13:42:38 +0000 (14:42 +0100)
test/jalview/datamodel/AlignmentAnnotationTests.java

index 74c2b63..fb4833c 100644 (file)
@@ -424,14 +424,14 @@ public class AlignmentAnnotationTests
         new Annotation(13), new Annotation(14), new Annotation(15) };
     ann = new AlignmentAnnotation("an", "some an", anns);
     h = new HiddenColumns();
-    h.hideColumns(5, 18);
+    h.hideColumns(6, 18);
     h.hideColumns(20, 21);
     ann.makeVisibleAnnotation(1, 21, h);
     assertEquals(5, ann.annotations.length);
+    assertNull(ann.annotations[0]);
     assertEquals(1.0f, ann.annotations[1].value);
     assertEquals(2.0f, ann.annotations[2].value);
     assertEquals(3.0f, ann.annotations[3].value);
-    assertNull(ann.annotations[0]);
     assertNull(ann.annotations[4]);
   }