X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fext%2Fjmol%2FJmolVsJalviewPDBParserEndToEndTest.java;h=d285b04f9d04e39122e93bdb51bec6a72620db5f;hb=4b1c279987cdfe6ebdb894059cbc29d24d804e9d;hp=6baa1ddab650a02b3b908b9e8e47fbe405e071dc;hpb=7d67fb613ec026dc9a265e351e7fab542e3f1d61;p=jalview.git diff --git a/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java b/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java index 6baa1dd..d285b04 100644 --- a/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java +++ b/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java @@ -21,6 +21,7 @@ package jalview.ext.jmol; import jalview.datamodel.SequenceI; +import jalview.gui.JvOptionPane; import jalview.io.DataSourceType; import java.io.File; @@ -29,6 +30,8 @@ import java.util.HashSet; import java.util.Set; import java.util.Vector; +import org.testng.annotations.BeforeClass; + import MCview.PDBfile; /** @@ -43,6 +46,13 @@ import MCview.PDBfile; public class JmolVsJalviewPDBParserEndToEndTest { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + public static void main(String[] args) { if (args == null || args[0] == null)