+ // null annotation
+ AlignmentAnnotation nullann = null;
+ h.makeVisibleAnnotation(nullann);
+ assertNull(nullann);
+
+ h.makeVisibleAnnotation(1, 2, nullann);
+ assertNull(nullann);
+
+ // null annotations
+ AlignmentAnnotation emptyann = new AlignmentAnnotation("an", "some ann", null);
+ h.makeVisibleAnnotation(emptyann);
+ assertNull(emptyann.annotations);
+
+ h.makeVisibleAnnotation(3, 4, emptyann);
+ assertNull(emptyann.annotations);
+
+ // without bounds, does everything
+ h.makeVisibleAnnotation(ann);
+ assertEquals(12, ann.annotations.length);
+ assertNull(ann.annotations[0]);
+ assertNull(ann.annotations[1]);
+ assertEquals(1.0f, ann.annotations[2].value);
+ assertEquals(2.0f, ann.annotations[3].value);
+ assertEquals(3.0f, ann.annotations[4].value);
+ assertNull(ann.annotations[5]);
+ assertNull(ann.annotations[6]);
+ assertEquals(4.0f, ann.annotations[7].value);
+ assertEquals(5.0f, ann.annotations[8].value);
+ assertEquals(6.0f, ann.annotations[9].value);
+ assertEquals(7.0f, ann.annotations[10].value);
+ assertEquals(8.0f, ann.annotations[11].value);
+