X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fws%2Frest%2FRestClientTest.java;h=7a9419a744a083848dd14aec800c5a8fa0a6bcf9;hb=5f4e1e4c330b045e9c8bce28ee132a0fca3834d8;hp=4c550124bf92ab4609d8640884dd6226f1040e64;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/test/jalview/ws/rest/RestClientTest.java b/test/jalview/ws/rest/RestClientTest.java index 4c55012..7a9419a 100644 --- a/test/jalview/ws/rest/RestClientTest.java +++ b/test/jalview/ws/rest/RestClientTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -23,13 +23,23 @@ package jalview.ws.rest; import static org.testng.AssertJUnit.assertEquals; import jalview.bin.Cache; +import jalview.gui.JvOptionPane; import java.util.Vector; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class RestClientTest { + + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * Refactored 'as is' from main method */