@Test public void emptyProjectNameEnteredTest() { String emptyName = ""; when(view.getProjectName()).thenReturn(emptyName); presenter.projectNameChanged(emptyName); verify(newProject).setName(anyString()); verify(view).showNameError(); verify(delegate).updateControls(); }
@Override public void projectNameChanged(@Nonnull String name) { dataObject.getProject().setName(name); updateDelegate.updateControls(); validateProjectName(); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void projectNameChanged(@Nonnull String name) { dataObject.getProject().setName(name); updateDelegate.updateControls(); validateProjectName(); } }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void projectNameChanged(@Nonnull String name) { dataObject.getProject().setName(name); updateDelegate.updateControls(); validateProjectName(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void projectNameChanged(@Nonnull String name) { dataObject.getProject().setName(name); updateDelegate.updateControls(); validateProjectName(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); @Override void init(ImportProject dataObject); @Override boolean isCompleted(); @Override void projectNameChanged(@Nonnull String name); @Override void projectUrlChanged(@Nonnull String url); @Override void projectDescriptionChanged(@Nonnull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void skipFirstLevelChanged(boolean isSkipFirstLevel); @Override void go(AcceptsOneWidget container); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void projectNameChanged(@Nonnull String name) { dataObject.getProject().setName(name); updateDelegate.updateControls(); validateProjectName(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); @Override void init(ImportProject dataObject); @Override boolean isCompleted(); @Override void projectNameChanged(@Nonnull String name); @Override void projectUrlChanged(@Nonnull String url); @Override void projectDescriptionChanged(@Nonnull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void skipFirstLevelChanged(boolean isSkipFirstLevel); @Override void go(AcceptsOneWidget container);  }