GitImporterPagePresenter extends AbstractWizardPage<ImportProject> implements GitImporterPageView.ActionDelegate { @Override public void projectVisibilityChanged(boolean visible) { dataObject.getProject().setVisibility(visible ? PUBLIC_VISIBILITY : PRIVATE_VISIBILITY); updateDelegate.updateControls(); } @Inject  GitImporterPagePresenter(GitImporterPageView view,
                                    GitLocalizationConstant 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);  }
@Test public void projectVisibilityChangedTest() { presenter.projectVisibilityChanged(true); verify(newProject).setVisibility(eq("public")); }