X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Frest%2FShmmrRSBSService.java;h=53341d047060f3368a1f03548525e6792d10174e;hb=refs%2Fheads%2Ffeatures%2FJAL-2326_JOptionPane-refactoring;hp=30383f713a2b7732e4b12feea64b721a4d122230;hpb=fee1b781ca14aadea5d112fc554fe14879c787c5;p=jalview.git diff --git a/test/jalview/ws/rest/ShmmrRSBSService.java b/test/jalview/ws/rest/ShmmrRSBSService.java index 30383f7..53341d0 100644 --- a/test/jalview/ws/rest/ShmmrRSBSService.java +++ b/test/jalview/ws/rest/ShmmrRSBSService.java @@ -24,9 +24,11 @@ import static org.testng.AssertJUnit.assertNotNull; import static org.testng.AssertJUnit.assertTrue; import jalview.gui.AlignFrame; +import jalview.gui.JvOptionPane; import java.util.Map; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; /** @@ -36,6 +38,13 @@ import org.testng.annotations.Test; public class ShmmrRSBSService { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + @Test(groups = { "Functional" }) public void testShmmrService() {