X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Frest%2FShmmrRSBSService.java;fp=test%2Fjalview%2Fws%2Frest%2FShmmrRSBSService.java;h=709f2c5f08e49f04f1df774899f14364d70aa7d2;hb=2595e9d4ee0dbbd3406a98c4e49a61ccde806479;hp=30383f713a2b7732e4b12feea64b721a4d122230;hpb=e20075ba805d744d7cc4976e2b8d5e5840fb0a8d;p=jalview.git diff --git a/test/jalview/ws/rest/ShmmrRSBSService.java b/test/jalview/ws/rest/ShmmrRSBSService.java index 30383f7..709f2c5 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() { @@ -53,10 +62,10 @@ public class ShmmrRSBSService assertNotNull(_rc); AlignFrame alf = new jalview.io.FileLoader(false) .LoadFileWaitTillLoaded("examples/testdata/smad.fa", - jalview.io.FormatAdapter.FILE); + jalview.io.DataSourceType.FILE); assertNotNull("Couldn't find test data.", alf); alf.loadJalviewDataFile("examples/testdata/smad_groups.jva", - jalview.io.FormatAdapter.FILE, null, null); + jalview.io.DataSourceType.FILE, null, null); assertTrue( "Couldn't load the test data's annotation file (should be 5 groups but found " + alf.getViewport().getAlignment().getGroups().size()