@Test public void showTranslatedMessages() { List<ValidationMessage> validationMessages = Arrays.asList(new ValidationMessage()); validationPopup.showTranslatedMessages(validationMessages); List<ValidationMessage> translatedMessages = Collections.emptyList(); when(validationMessageTranslatorUtils.translate(validationMessages)).thenReturn(translatedMessages); verify(view).setValidationMessages(translatedMessages); verify(view).show(); }
public void showTranslatedMessages(final List<ValidationMessage> messages) { showMessages(validationMessageTranslatorUtils.translate(messages)); }
ValidationPopup implements ValidationPopupView.Presenter { public void showTranslatedMessages(final List<ValidationMessage> messages) { showMessages(validationMessageTranslatorUtils.translate(messages)); } }
ValidationPopup implements ValidationPopupView.Presenter { public void showTranslatedMessages(final List<ValidationMessage> messages) { showMessages(validationMessageTranslatorUtils.translate(messages)); } @Inject  ValidationPopup(final ValidationPopupView view,
                           final ValidationMessageTranslatorUtils validationMessageTranslatorUtils,
                           final TranslationService translationService,
                           final Event<NotificationEvent> notificationEvent); }
ValidationPopup implements ValidationPopupView.Presenter { public void showTranslatedMessages(final List<ValidationMessage> messages) { showMessages(validationMessageTranslatorUtils.translate(messages)); } @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 void showTranslatedMessages(final List<ValidationMessage> messages) { showMessages(validationMessageTranslatorUtils.translate(messages)); } @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();  }