@Test public void testNewOkCancelDialog_ValidationService() { MessageList ml = new MessageList(); ValidationService validationService = mock(ValidationService.class); when(validationService.getValidationMessages()).thenReturn(ml); PmoBasedDialogFactory pmoBasedDialogFactory = new PmoBasedDialogFactory(validationService, PropertyBehaviorProvider.NO_BEHAVIOR_PROVIDER); OkCancelDialog dialog = pmoBasedDialogFactory.newOkCancelDialog("test", Handler.NOP_HANDLER, Handler.NOP_HANDLER, ButtonOption.OK_CANCEL); assertThat(dialog.getValidationService(), is(validationService)); }
@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);  }