JAL-2547 JAL-2562 rejig SetStatusMessage return value test for legibility and maximum...
authorJim Procter <jprocter@issues.jalview.org>
Sat, 27 May 2017 11:57:37 +0000 (12:57 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sat, 27 May 2017 11:57:53 +0000 (12:57 +0100)
test/jalview/gui/SeqPanelTest.java

index 488570a..b7dc250 100644 (file)
@@ -49,18 +49,19 @@ public class SeqPanelTest
     AlignFrame alignFrame = new AlignFrame(al, al.getWidth(),
             al.getHeight());
     AlignmentI visAl = alignFrame.getViewport().getAlignment();
+    // Test either side of gap
     assertEquals(
             alignFrame.alignPanel.getSeqPanel().setStatusMessage(
                     visAl.getSequenceAt(1), 1, 1), 2);
     assertEquals(
-            
             alignFrame.alignPanel.getSeqPanel().setStatusMessage(
-                    visAl.getSequenceAt(1), 2, 1), -1);
+                    visAl.getSequenceAt(1), 4, 1), 3);
+    // Test gaps are -1
     assertEquals(
             alignFrame.alignPanel.getSeqPanel().setStatusMessage(
-                    visAl.getSequenceAt(1), 3, 1), -1);
+                    visAl.getSequenceAt(1), 2, 1), -1);
     assertEquals(
             alignFrame.alignPanel.getSeqPanel().setStatusMessage(
-                    visAl.getSequenceAt(1), 4, 1), 3);
+                    visAl.getSequenceAt(1), 3, 1), -1);
   }
 }