X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Frest%2FRestClientTest.java;h=7a9419a744a083848dd14aec800c5a8fa0a6bcf9;hb=2b8c0785318a3528e1876e8e2dd48b7d831eae69;hp=519f55c9e4370ba48e96f1fb27ad938f12008c8a;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/test/jalview/ws/rest/RestClientTest.java b/test/jalview/ws/rest/RestClientTest.java index 519f55c..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.0b1) - * 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 */