use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showInputDialog2.
@Test(enabled = !true)
public void showInputDialog2() {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showInputDialog("Press ok!", "initialValue");
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
Assert.assertEquals(result.getUserInput(), "initialValue");
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showInputDialog4.
@Test(enabled = !true)
public void showInputDialog4() throws IOException {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result;
result = messageBox.showInputDialog("Press ok!", TITLE, DialogType.ERROR_MESSAGE, iconData, 2, options);
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
Assert.assertEquals(result.getUserInput(), "three");
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showOptionDialog.
@Test(enabled = !true)
public void showOptionDialog() throws IOException {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showOptionDialog("Press the one button!", TITLE, OptionType.OK_CANCEL_OPTION, DialogType.ERROR_MESSAGE, iconData, options);
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
Assert.assertEquals(result.getUserInput(), "one");
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showConfirmDialog4.
@Test(enabled = !true)
public void showConfirmDialog4() throws IOException {
MessageDialog messageBox = uc.obtainMessageDialog();
MessageDialogResult result = messageBox.showConfirmDialog("Press ok!", TITLE, OptionType.OK_CANCEL_OPTION, DialogType.ERROR_MESSAGE, iconData);
Assert.assertEquals(result.getReturnValue(), ReturnType.OK);
}
use of org.openecard.gui.MessageDialog in project open-ecard by ecsec.
the class RunMessageBox method showMessage3.
@Test(enabled = !true)
public void showMessage3() throws IOException {
MessageDialog messageBox = uc.obtainMessageDialog();
messageBox.showMessageDialog(MSG, TITLE, DialogType.ERROR_MESSAGE, iconData);
}
Aggregations