Merge branch 'features/JAL-2326_JOptionPane-refactoring' into develop
[jalview.git] / test / jalview / ext / android / SparseIntArrayTest.java
index be95d6e..d9ed73d 100644 (file)
@@ -23,6 +23,9 @@ package jalview.ext.android;
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.fail;
 
+import jalview.gui.JvOptionPane;
+
+import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
 /*
@@ -31,6 +34,14 @@ import org.testng.annotations.Test;
  */
 public class SparseIntArrayTest
 {
+
+  @BeforeClass(alwaysRun = true)
+  public void setUpJvOptionPane()
+  {
+    JvOptionPane.setInteractiveMode(false);
+    JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+  }
+
   @Test(groups = "Functional")
   public void testPut()
   {