X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2FMCview%2FAtomTest.java;fp=test%2FMCview%2FAtomTest.java;h=2d11fb59d9f0f30494cace0d801f4c73496cc418;hb=2595e9d4ee0dbbd3406a98c4e49a61ccde806479;hp=21a79fe3f7321a39b9e473e80f3e59c005b452ac;hpb=e20075ba805d744d7cc4976e2b8d5e5840fb0a8d;p=jalview.git diff --git a/test/MCview/AtomTest.java b/test/MCview/AtomTest.java index 21a79fe..2d11fb5 100644 --- a/test/MCview/AtomTest.java +++ b/test/MCview/AtomTest.java @@ -22,12 +22,22 @@ package MCview; import static org.testng.AssertJUnit.assertEquals; +import jalview.gui.JvOptionPane; + import org.testng.Assert; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class AtomTest { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * Test the constructor that parses a PDB file format ATOM line. Fields are in * fixed column positions