X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2FMCview%2FAtomTest.java;h=2d11fb59d9f0f30494cace0d801f4c73496cc418;hb=b94b42970dda2cd5f640ebda31bbb835fd2914df;hp=ced0761f08955c8f852d3a484fa68c27460876ad;hpb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;p=jalview.git diff --git a/test/MCview/AtomTest.java b/test/MCview/AtomTest.java index ced0761..2d11fb5 100644 --- a/test/MCview/AtomTest.java +++ b/test/MCview/AtomTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -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