SubversionProjectImporterPresenter extends AbstractWizardPage<ImportProject> implements SubversionProjectImporterView.ActionDelegate { @Override public void onProjectDescriptionChanged() { dataObject.getProject().setDescription(view.getProjectDescription()); updateDelegate.updateControls(); } @Inject  SubversionProjectImporterPresenter(SubversionProjectImporterView view); @Override void go(AcceptsOneWidget container); @Override void onProjectNameChanged(); @Override void onProjectUrlChanged(); @Override void onProjectRelativePathChanged(); @Override void onProjectDescriptionChanged(); @Override void onProjectVisibilityChanged(); @Override void onCredentialsChanged(); static final String PUBLIC_VISIBILITY; static final String PRIVATE_VISIBILITY; }
@Test public void testProjectDescription() throws Exception { final String description = "Some description."; when(view.getProjectDescription()).thenReturn(description); presenter.onProjectDescriptionChanged(); verify(dataObject.getProject()).setDescription(eq(description)); verify(view, never()).setNameErrorVisibility(anyBoolean()); verify(updateDelegate).updateControls(); }