@Test public void getCallback() throws Exception { final AssetValidatedCallback callback = validationPopup.getValidationCallback(mock(Command.class)); callback.callback(new ArrayList<>()); verify(notificationEvent).fire(any()); }
public AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand){ return new AssetValidatedCallback(validationFinishedCommand, notificationEvent, this); }
ValidationPopup implements ValidationPopupView.Presenter { public AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand){ return new AssetValidatedCallback(validationFinishedCommand, notificationEvent, this); } }
ValidationPopup implements ValidationPopupView.Presenter { public AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand){ return new AssetValidatedCallback(validationFinishedCommand, notificationEvent, this); } @Inject  ValidationPopup(final ValidationPopupView view,
                           final ValidationMessageTranslatorUtils validationMessageTranslatorUtils,
                           final TranslationService translationService,
                           final Event<NotificationEvent> notificationEvent); }
ValidationPopup implements ValidationPopupView.Presenter { public AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand){ return new AssetValidatedCallback(validationFinishedCommand, notificationEvent, this); } @Inject  ValidationPopup(final ValidationPopupView view,
                           final ValidationMessageTranslatorUtils validationMessageTranslatorUtils,
                           final TranslationService translationService,
                           final Event<NotificationEvent> notificationEvent); @PostConstruct void init(); void showMessages(final List<ValidationMessage> messages); AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand); void showTranslatedMessages(final List<ValidationMessage> messages); void showCopyValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showSaveValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showDeleteValidationMessages(final Command yesCommand,
                                             final Command cancelCommand,
                                             final List<ValidationMessage> validationMessages); @Override void onYesButtonClicked(); @Override void onCancelButtonClicked(); }
ValidationPopup implements ValidationPopupView.Presenter { public AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand){ return new AssetValidatedCallback(validationFinishedCommand, notificationEvent, this); } @Inject  ValidationPopup(final ValidationPopupView view,
                           final ValidationMessageTranslatorUtils validationMessageTranslatorUtils,
                           final TranslationService translationService,
                           final Event<NotificationEvent> notificationEvent); @PostConstruct void init(); void showMessages(final List<ValidationMessage> messages); AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand); void showTranslatedMessages(final List<ValidationMessage> messages); void showCopyValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showSaveValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showDeleteValidationMessages(final Command yesCommand,
                                             final Command cancelCommand,
                                             final List<ValidationMessage> validationMessages); @Override void onYesButtonClicked(); @Override void onCancelButtonClicked();  }