GithubImporterPagePresenter extends AbstractWizardPage<ImportProject> implements GithubImporterPageView.ActionDelegate { @Override public void projectDescriptionChanged(@NotNull String projectDescription) { dataObject.getProject().setDescription(projectDescription); updateDelegate.updateControls(); } @Inject  GithubImporterPagePresenter(GithubImporterPageView view,
                                       GitHubAuthenticator gitHubAuthenticator,
                                       NotificationManager notificationManager,
                                       GitHubClientService gitHubClientService,
                                       DtoFactory dtoFactory,
                                       GitHubLocalizationConstant locale); @Override boolean isCompleted(); @Override void projectNameChanged(@NotNull String name); @Override void projectUrlChanged(@NotNull String url); @Override void recursiveSelected(boolean recursiveSelected); @Override void projectDescriptionChanged(@NotNull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void keepDirectorySelected(boolean keepDirectory); @Override void keepDirectoryNameChanged(@NotNull String directoryName); @Override void go(@NotNull AcceptsOneWidget container); @Override void onLoadRepoClicked(); @Override void onRepositorySelected(@NotNull ProjectData repository); @Override void onAccountChanged();  }
@Test public void projectDescriptionChangedTest() { String description = "description"; presenter.projectDescriptionChanged(description); verify(newProject).setDescription(eq(description)); }