InputDialogPresenter implements InputDialog, InputDialogView.ActionDelegate { @Override public void inputValueChanged() { isInputValid(); } @AssistedInject  InputDialogPresenter(final @NotNull InputDialogView view,
                                final @NotNull @Assisted("title") String title,
                                final @NotNull @Assisted("label") String label,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback,
                                final UILocalizationConstant localizationConstant); @AssistedInject  InputDialogPresenter(final @NotNull InputDialogView view,
                                final @NotNull @Assisted("title") String title,
                                final @NotNull @Assisted("label") String label,
                                final @NotNull @Assisted("initialValue") String initialValue,
                                final @NotNull @Assisted("selectionStartIndex") Integer selectionStartIndex,
                                final @NotNull @Assisted("selectionLength") Integer selectionLength,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback,
                                final UILocalizationConstant localizationConstant); @Override void cancelled(); @Override void accepted(); @Override void inputValueChanged(); @Override void onEnterClicked(); @Override void show(); @Override InputDialog withValidator(InputValidator inputValidator);  }
@Test public void shouldShowErrorHintWhenEmptyValue() throws Exception { reset(view); when(view.getValue()).thenReturn(""); presenter.inputValueChanged(); verify(view).showErrorHint(anyString()); verify(view, never()).hideErrorHint(); verify(view, never()).setValue(anyString()); }