ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void projectVisibilityChanged(boolean visible) { dataObject.getProject().setVisibility(visible ? PUBLIC_VISIBILITY : PRIVATE_VISIBILITY); updateDelegate.updateControls(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); @Override void init(ImportProject dataObject); @Override boolean isCompleted(); @Override void projectNameChanged(@NotNull String name); @Override void projectUrlChanged(@NotNull String url); @Override void projectDescriptionChanged(@NotNull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void skipFirstLevelChanged(boolean isSkipFirstLevel); @Override void go(AcceptsOneWidget container);  }
@Test public void projectVisibilityChangedTest() { presenter.projectVisibilityChanged(true); verify(newProject).setVisibility(eq("public")); verify(delegate).updateControls(); }