X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fanalysis%2FSequenceIdMatcherTest.java;h=b2dfde0b73e842b63b472d5f9808a7b47eb2bfa6;hb=3684934fd25c4941bd2d6ec8bc9dc7d760979f4e;hp=b07108027cfc65179e8a0e7f1b65768d7d1ee81e;hpb=604cbee405a837565ba1a74aa9bddd62aed685ab;p=jalview.git diff --git a/test/jalview/analysis/SequenceIdMatcherTest.java b/test/jalview/analysis/SequenceIdMatcherTest.java index b071080..b2dfde0 100644 --- a/test/jalview/analysis/SequenceIdMatcherTest.java +++ b/test/jalview/analysis/SequenceIdMatcherTest.java @@ -25,12 +25,21 @@ import static org.testng.AssertJUnit.assertTrue; import jalview.analysis.SequenceIdMatcher.SeqIdName; import jalview.datamodel.SequenceI; +import jalview.gui.JvOptionPane; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class SequenceIdMatcherTest { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * Test the method that checks for one sequence id starting with the other, * followed by an 'allowed' separator character