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
/
fts
/
service
/
pdb
/
PDBFTSRestClientTest.java
diff --git
a/test/jalview/fts/service/pdb/PDBFTSRestClientTest.java
b/test/jalview/fts/service/pdb/PDBFTSRestClientTest.java
index
8faec58
..
bbd45aa
100644
(file)
--- a/
test/jalview/fts/service/pdb/PDBFTSRestClientTest.java
+++ b/
test/jalview/fts/service/pdb/PDBFTSRestClientTest.java
@@
-26,6
+26,7
@@
import static org.testng.AssertJUnit.assertTrue;
import jalview.fts.api.FTSDataColumnI;
import jalview.fts.core.FTSRestRequest;
import jalview.fts.core.FTSRestResponse;
import jalview.fts.api.FTSDataColumnI;
import jalview.fts.core.FTSRestRequest;
import jalview.fts.core.FTSRestResponse;
+import jalview.gui.JvOptionPane;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileReader;
@@
-42,6
+43,7
@@
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.json.simple.parser.ParseException;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@
-54,6
+56,13
@@
import com.sun.jersey.api.client.config.DefaultClientConfig;
public class PDBFTSRestClientTest
{
public class PDBFTSRestClientTest
{
+ @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
{