X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2FMCview%2FResidueTest.java;h=0acd6811acac39f814367b2f5b5713f3f7d03ec8;hb=8e820dadfebf0ced59476338df0fa391590f5401;hp=ed98c5bf7aa63996f15cc0c4845c28adbeae20e0;hpb=c777b335d0332979123446f431b7f0c160eb4880;p=jalview.git diff --git a/test/MCview/ResidueTest.java b/test/MCview/ResidueTest.java index ed98c5b..0acd681 100644 --- a/test/MCview/ResidueTest.java +++ b/test/MCview/ResidueTest.java @@ -1,16 +1,46 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package MCview; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertSame; +import static org.testng.AssertJUnit.assertNull; +import static org.testng.AssertJUnit.assertSame; + +import jalview.gui.JvOptionPane; import java.util.Vector; -import org.junit.Test; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; public class ResidueTest { - @Test + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + + @Test(groups = { "Functional" }) public void testFindAtom() { Atom a1 = new Atom(1f, 2f, 3f);