@Test public void testNewOkCancelDialog_CreationOfDialog() { Handler okHandler = mock(Handler.class); Handler cancelHandler = mock(Handler.class); OkCancelDialog dialog = new PmoBasedDialogFactory() .newOkCancelDialog("test", okHandler, cancelHandler, ButtonOption.OK_CANCEL, new TestPmo()); assertThat(dialog.getCaption(), is("test")); dialog.ok(); verify(okHandler).apply(); verify(cancelHandler, never()).apply(); Mockito.reset(okHandler, cancelHandler); dialog.cancel(); verify(cancelHandler).apply(); verify(okHandler, never()).apply(); assertThat(DialogTestUtil.getButtons(dialog), hasSize(2)); assertThat(DialogTestUtil.getContents(dialog), hasSize(1)); }
@Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler) { return newOkCancelDialog(title, okHandler, pmo); }
PmoBasedDialogFactory { @Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler) { return newOkCancelDialog(title, okHandler, pmo); } }
PmoBasedDialogFactory { @Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler) { return newOkCancelDialog(title, okHandler, pmo); } PmoBasedDialogFactory();  PmoBasedDialogFactory(ValidationService validationService);  PmoBasedDialogFactory(PropertyBehavior... propertyBehavior);  PmoBasedDialogFactory(ValidationService validationService,
            PropertyBehaviorProvider propertyBehaviorProvider); }
PmoBasedDialogFactory { @Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler) { return newOkCancelDialog(title, okHandler, pmo); } PmoBasedDialogFactory();  PmoBasedDialogFactory(ValidationService validationService);  PmoBasedDialogFactory(PropertyBehavior... propertyBehavior);  PmoBasedDialogFactory(ValidationService validationService,
            PropertyBehaviorProvider propertyBehaviorProvider); @Deprecated OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler); OkCancelDialog newOkDialog(String title, Object... pmos); OkCancelDialog newOkCancelDialog(String title, Handler okHandler, Object... pmos); OkCancelDialog newOkCancelDialog(String title, Handler okHandler, Handler cancelHandler, Object... pmos); OkCancelDialog openOkDialog(String title, Object... pmos); @Deprecated OkCancelDialog openOkCancelDialog(String title, Object pmo, Handler okHandler); OkCancelDialog openOkCancelDialog(String title, Handler okHandler, Object... pmos); OkCancelDialog openOkCancelDialog(String title, Handler okHandler, Handler cancelHandler, Object... pmos); @Deprecated static OkCancelDialog open(OkCancelDialog dialog); }
PmoBasedDialogFactory { @Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler) { return newOkCancelDialog(title, okHandler, pmo); } PmoBasedDialogFactory();  PmoBasedDialogFactory(ValidationService validationService);  PmoBasedDialogFactory(PropertyBehavior... propertyBehavior);  PmoBasedDialogFactory(ValidationService validationService,
            PropertyBehaviorProvider propertyBehaviorProvider); @Deprecated OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler); OkCancelDialog newOkDialog(String title, Object... pmos); OkCancelDialog newOkCancelDialog(String title, Handler okHandler, Object... pmos); OkCancelDialog newOkCancelDialog(String title, Handler okHandler, Handler cancelHandler, Object... pmos); OkCancelDialog openOkDialog(String title, Object... pmos); @Deprecated OkCancelDialog openOkCancelDialog(String title, Object pmo, Handler okHandler); OkCancelDialog openOkCancelDialog(String title, Handler okHandler, Object... pmos); OkCancelDialog openOkCancelDialog(String title, Handler okHandler, Handler cancelHandler, Object... pmos); @Deprecated static OkCancelDialog open(OkCancelDialog dialog);  }