X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2FMCview%2FBondTest.java;h=aa29ad0752069ef923f1517df194b5220800568e;hb=4168df76dac70bf7ca9fb598d18783422d565e6d;hp=f3444c7a2d7477c9d7f9a01dbc083463a1a2655f;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/test/MCview/BondTest.java b/test/MCview/BondTest.java index f3444c7..aa29ad0 100644 --- a/test/MCview/BondTest.java +++ b/test/MCview/BondTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * 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,11 +22,21 @@ package MCview; import static org.testng.AssertJUnit.assertEquals; +import jalview.gui.JvOptionPane; + +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class BondTest { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + @Test(groups = { "Functional" }) public void testTranslate() {