JAL-3341 debug for failing unit test bug/JAL-3341unitTestFails
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 28 Jan 2020 15:18:12 +0000 (15:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 28 Jan 2020 15:18:12 +0000 (15:18 +0000)
test/jalview/gui/SeqPanelTest.java

index cd0b594..a03819d 100644 (file)
@@ -570,7 +570,12 @@ public class SeqPanelTest
       evt = new MouseEvent(testee, MouseEvent.MOUSE_MOVED, 0L, 0, x, y, 0, 0, 0,
               false, 0);
       pos = testee.findMousePosition(evt);
-      assertEquals(pos.seqIndex, alignmentHeight - 1);
+      SeqCanvas sc = testee.seqCanvas;
+      assertEquals(pos.seqIndex, alignmentHeight - 1,
+              String.format("%s n=%d y=%d %d, %d, %d, %d",
+                      annotationRows[n].label, n, y, sc.getWidth(),
+                      sc.getHeight(), sc.wrappedRepeatHeightPx,
+                      sc.wrappedSpaceAboveAlignment));
       assertEquals(pos.annotationIndex, n);
     }