use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showConfirmDialog2.
@Test(enabled = !true)
public void showConfirmDialog2() {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showConfirmDialog("Press ok!", TITLE, OptionType.OK_CANCEL_OPTION);
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showConfirmDialog.
@Test(enabled = !true)
public void showConfirmDialog() {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showConfirmDialog("Press yes!", TITLE);
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
result = messageBox.showConfirmDialog("Press no!", TITLE);
Assert.assertEquals(result.getReturnValue(), ReturnType.NO);
result = messageBox.showConfirmDialog("Press cancel!", TITLE);
Assert.assertEquals(result.getReturnValue(), ReturnType.CANCEL);
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showInputDialog3.
@Test(enabled = !true)
public void showInputDialog3() {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showInputDialog("Press ok!", TITLE, DialogType.ERROR_MESSAGE, "");
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
}
Aggregations