X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fgui%2FJAL1353bugdemo.java;h=bcd578498b196747aa10cd6b7148696e8e1e8b68;hb=76d3768510fea49f5b2498877d23a311be9c5220;hp=489fe4fbf73648bc4e87176b4be8dda322db44f1;hpb=37de9310bec3501cbc6381e0c3dcb282fcaad812;p=jalview.git diff --git a/test/jalview/gui/JAL1353bugdemo.java b/test/jalview/gui/JAL1353bugdemo.java index 489fe4f..bcd5784 100644 --- a/test/jalview/gui/JAL1353bugdemo.java +++ b/test/jalview/gui/JAL1353bugdemo.java @@ -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; }