git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2326 added setup method for JvOptionPane in all Jalveiw test classes to enable...
[jalview.git]
/
test
/
jalview
/
datamodel
/
PDBEntryTest.java
diff --git
a/test/jalview/datamodel/PDBEntryTest.java
b/test/jalview/datamodel/PDBEntryTest.java
index
e9d5cb2
..
cf4294e
100644
(file)
--- a/
test/jalview/datamodel/PDBEntryTest.java
+++ b/
test/jalview/datamodel/PDBEntryTest.java
@@
-31,15
+31,24
@@
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
import jalview.datamodel.PDBEntry.Type;
import static org.testng.Assert.fail;
import jalview.datamodel.PDBEntry.Type;
+import jalview.gui.JvOptionPane;
//import org.testng.Assert;
import org.testng.annotations.AfterMethod;
//import org.testng.Assert;
import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class PDBEntryTest
{
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class PDBEntryTest
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{