From d1f560eaa0941d5768fa3e11ad470653fbd915e3 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 27 May 2017 12:57:37 +0100 Subject: [PATCH] JAL-2547 JAL-2562 rejig SetStatusMessage return value test for legibility and maximum assert coverage before JAL-2526 causes failure --- test/jalview/gui/SeqPanelTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } } -- 1.7.10.2