From: Mateusz Warowny Date: Tue, 23 Jan 2024 13:42:38 +0000 (+0100) Subject: JAL-1601 Fix broken Alignment Annotation test X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f1a12cfc77755bd27f7a7afc6c0ce6d352e2222c;p=jalview.git JAL-1601 Fix broken Alignment Annotation test --- diff --git a/test/jalview/datamodel/AlignmentAnnotationTests.java b/test/jalview/datamodel/AlignmentAnnotationTests.java index 74c2b63..fb4833c 100644 --- a/test/jalview/datamodel/AlignmentAnnotationTests.java +++ b/test/jalview/datamodel/AlignmentAnnotationTests.java @@ -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]); }