Skip to content
Permalink
Browse files

Minor cleanup

  • Loading branch information...
danielboudreau danielboudreau
danielboudreau authored and danielboudreau committed Oct 23, 2018
1 parent e1094d9 commit 87d29b1ba225ee17f58bb2f20730fedeee0cf58c
@@ -258,7 +258,7 @@ public void run() {


JemmyUtil.pressDialogButton(MessageFormat.format(Bundle.getMessage("TerminateTrain"),
new Object[]{train2.getName(), train2.getDescription()}), "Yes");
new Object[]{train2.getName(), train2.getDescription()}), Bundle.getMessage("ButtonYes"));

jmri.util.JUnitUtil.waitFor(() -> {
return terminate.getState().equals(Thread.State.TERMINATED);
@@ -62,7 +62,7 @@ public void run() {
}, "wait for dialog to appear");

JemmyUtil.pressDialogButton(MessageFormat.format(
Bundle.getMessage("PrintPreviousManifest"), new Object[]{"preview"}), "Yes");
Bundle.getMessage("PrintPreviousManifest"), new Object[]{"preview"}), Bundle.getMessage("ButtonYes"));

jmri.util.JUnitUtil.waitFor(() -> {
return printAction.getState().equals(Thread.State.TERMINATED);
@@ -35,6 +35,7 @@ static public void pressDialogButton(String dialogTitle, String buttonName) {
JButtonOperator jbo = new JButtonOperator(jdo, buttonName);
// Click button
jbo.push();
jdo.waitClosed();
}

static public void pressDialogButton(JmriJFrame f, String dialogTitle, String buttonName) {

0 comments on commit 87d29b1

Please sign in to comment.
You can’t perform that action at this time.