From: Jim Procter Date: Sat, 27 May 2017 11:57:37 +0000 (+0100) Subject: JAL-2547 JAL-2562 rejig SetStatusMessage return value test for legibility and maximum... X-Git-Tag: Release_2_10_2~3^2~67^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d1f560eaa0941d5768fa3e11ad470653fbd915e3;p=jalview.git JAL-2547 JAL-2562 rejig SetStatusMessage return value test for legibility and maximum assert coverage before JAL-2526 causes failure --- diff --git a/test/jalview/gui/SeqPanelTest.java b/test/jalview/gui/SeqPanelTest.java index 488570a..b7dc250 100644 --- a/test/jalview/gui/SeqPanelTest.java +++ b/test/jalview/gui/SeqPanelTest.java @@ -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); } }