@Test public void shouldSetValidator() throws Exception { final InputValidator validatorMock = mock(InputValidator.class); presenter.withValidator(validatorMock); verify(view).setValidator(validatorMock); }
@Override public InputDialog withValidator(InputValidator inputValidator) { this.view.setValidator(inputValidator); return this; }
InputDialogPresenter implements InputDialog, InputDialogView.ActionDelegate { @Override public InputDialog withValidator(InputValidator inputValidator) { this.view.setValidator(inputValidator); return this; } }
InputDialogPresenter implements InputDialog, InputDialogView.ActionDelegate { @Override public InputDialog withValidator(InputValidator inputValidator) { this.view.setValidator(inputValidator); return this; } @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nonnull @Assisted("initialValue") String initialValue,
                                final @Nonnull @Assisted("selectionStartIndex") Integer selectionStartIndex,
                                final @Nonnull @Assisted("selectionLength") Integer selectionLength,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); }
InputDialogPresenter implements InputDialog, InputDialogView.ActionDelegate { @Override public InputDialog withValidator(InputValidator inputValidator) { this.view.setValidator(inputValidator); return this; } @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nonnull @Assisted("initialValue") String initialValue,
                                final @Nonnull @Assisted("selectionStartIndex") Integer selectionStartIndex,
                                final @Nonnull @Assisted("selectionLength") Integer selectionLength,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); @Override void cancelled(); @Override void accepted(); @Override void show(); @Override InputDialog withValidator(InputValidator inputValidator); }
InputDialogPresenter implements InputDialog, InputDialogView.ActionDelegate { @Override public InputDialog withValidator(InputValidator inputValidator) { this.view.setValidator(inputValidator); return this; } @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); @AssistedInject  InputDialogPresenter(final @Nonnull InputDialogView view,
                                final @Nonnull @Assisted("title") String title,
                                final @Nonnull @Assisted("label") String label,
                                final @Nonnull @Assisted("initialValue") String initialValue,
                                final @Nonnull @Assisted("selectionStartIndex") Integer selectionStartIndex,
                                final @Nonnull @Assisted("selectionLength") Integer selectionLength,
                                final @Nullable @Assisted InputCallback inputCallback,
                                final @Nullable @Assisted CancelCallback cancelCallback); @Override void cancelled(); @Override void accepted(); @Override void show(); @Override InputDialog withValidator(InputValidator inputValidator);  }