X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Febi%2FEBIFetchClientTest.java;h=40737ca4af71fcf23070e38f9d22b873add298e1;hb=refs%2Fheads%2Ffeatures%2FJAL-2326_JOptionPane-refactoring;hp=e323a0d7891e906b101af69574b69987d13920f3;hpb=fee1b781ca14aadea5d112fc554fe14879c787c5;p=jalview.git diff --git a/test/jalview/ws/ebi/EBIFetchClientTest.java b/test/jalview/ws/ebi/EBIFetchClientTest.java index e323a0d..40737ca 100644 --- a/test/jalview/ws/ebi/EBIFetchClientTest.java +++ b/test/jalview/ws/ebi/EBIFetchClientTest.java @@ -23,10 +23,21 @@ package jalview.ws.ebi; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNull; +import jalview.gui.JvOptionPane; + +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class EBIFetchClientTest { + + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * Test method that constructs URL to fetch from */