X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fws%2Fgui%2FJws2ParamView.java;h=80b48c30408b229a67bbd56d5544eb628ada9c02;hb=1554f4bd8e8ee6dd985251c1591793e23d89aad7;hp=1cf1e5f4d0442e51244b4916dc4fe86d5c626ec4;hpb=52288466dd1e71946a06fd1e6ea15fa8e652c693;p=jalview.git diff --git a/test/jalview/ws/gui/Jws2ParamView.java b/test/jalview/ws/gui/Jws2ParamView.java index 1cf1e5f..80b48c3 100644 --- a/test/jalview/ws/gui/Jws2ParamView.java +++ b/test/jalview/ws/gui/Jws2ParamView.java @@ -21,6 +21,7 @@ package jalview.ws.gui; import jalview.bin.Cache; +import jalview.gui.JvOptionPane; import jalview.gui.WsJobParameters; import jalview.util.MessageManager; import jalview.ws.jabaws.JalviewJabawsTestUtils; @@ -46,6 +47,14 @@ import compbio.metadata.PresetManager; public class Jws2ParamView { + + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * which services to test */ @@ -65,6 +74,7 @@ public class Jws2ParamView @BeforeClass(alwaysRun = true) public static void setUpBeforeClass() throws Exception { + Cache.loadProperties("test/jalview/io/testProps.jvprops"); Cache.initLogger(); disc = JalviewJabawsTestUtils.getJabawsDiscoverer(); } @@ -139,6 +149,7 @@ public class Jws2ParamView */ jf.addWindowListener(new WindowAdapter() { + @Override public void windowClosing(WindowEvent e) { thr.interrupt();