MIG -- explicitly sets Java9 switch to true for SwingJS
[jalview.git] / test / jalview / gui / JAL1353bugdemo.java
index 710d980..bcd5784 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -39,6 +39,13 @@ public class JAL1353bugdemo
 {
 
   @BeforeClass(alwaysRun = true)
+  public void setUpJvOptionPane()
+  {
+    JvOptionPane.setInteractiveMode(false);
+    JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+  }
+
+  @BeforeClass(alwaysRun = true)
   public static void setUpBeforeClass() throws Exception
   {
   }
@@ -92,8 +99,7 @@ public class JAL1353bugdemo
         // oo.setVisible(true);
         // parent.setVisible(true);
         EditNameDialog end = new EditNameDialog("Sequence Name",
-                "Sequence Description", "label 1", "Label 2",
-                "Try and drag between the two text fields", foo);// );cont.getRootPane());
+                       "Try and drag between the two text fields", "label 1", "Label 2");// );cont.getRootPane());
         assert (end != null);
         finish = true;
       }