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
/
ws
/
ebi
/
EBIFetchClientTest.java
diff --git
a/test/jalview/ws/ebi/EBIFetchClientTest.java
b/test/jalview/ws/ebi/EBIFetchClientTest.java
index
e323a0d
..
40737ca
100644
(file)
--- a/
test/jalview/ws/ebi/EBIFetchClientTest.java
+++ b/
test/jalview/ws/ebi/EBIFetchClientTest.java
@@
-23,10
+23,21
@@
package jalview.ws.ebi;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
+import jalview.gui.JvOptionPane;
+
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class EBIFetchClientTest
{
import org.testng.annotations.Test;
public class EBIFetchClientTest
{
+
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
/**
* Test method that constructs URL to fetch from
*/
/**
* Test method that constructs URL to fetch from
*/