JAL-4026 always wait 50ms before checking if the calculation worker is still running...
[jalview.git] / test / jalview / gui / JvOptionPaneTest.java
index 86409a4..17d7153 100644 (file)
@@ -30,12 +30,19 @@ import javax.swing.JFrame;
 import javax.swing.JPanel;
 
 import org.testng.Assert;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
 public class JvOptionPaneTest
 {
 
+  @BeforeClass(alwaysRun = true)
+  public void setUpJvOptionPane()
+  {
+    JvOptionPane.setInteractiveMode(false);
+    JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+  }
+
   Component parentComponent = null;
 
   String message = "Hello World!";
@@ -52,13 +59,6 @@ public class JvOptionPaneTest
 
   Object[] selectionValues = null;
 
-  @BeforeMethod(alwaysRun = true)
-  public void setUp()
-  {
-    JvOptionPane.setInteractiveMode(false);
-    JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
-  }
-
   @Test(groups = { "Functional" })
   public void showConfirmDialogFamilyTest()
   {