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
/
util
/
ColorUtilsTest.java
diff --git
a/test/jalview/util/ColorUtilsTest.java
b/test/jalview/util/ColorUtilsTest.java
index
77a023f
..
9a5d093
100644
(file)
--- a/
test/jalview/util/ColorUtilsTest.java
+++ b/
test/jalview/util/ColorUtilsTest.java
@@
-24,13
+24,23
@@
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertSame;
+import jalview.gui.JvOptionPane;
+
import java.awt.Color;
import java.awt.Color;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class ColorUtilsTest
{
import org.testng.annotations.Test;
public class ColorUtilsTest
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
Color paleColour = new Color(97, 203, 111); // pale green
Color midColour = new Color(135, 57, 41); // mid red
Color paleColour = new Color(97, 203, 111); // pale green
Color midColour = new Color(135, 57, 41); // mid red