GitImporterPagePresenter extends AbstractWizardPage<ImportProject> implements GitImporterPageView.ActionDelegate { @Override public void go(@NotNull AcceptsOneWidget container) { container.setWidget(view); view.setProjectName(dataObject.getProject().getName()); view.setProjectDescription(dataObject.getProject().getDescription()); view.setProjectVisibility(PUBLIC_VISIBILITY.equals(dataObject.getProject().getVisibility())); view.setProjectUrl(dataObject.getSource().getProject().getLocation()); view.setKeepDirectoryChecked(false); view.setDirectoryName(""); view.enableDirectoryNameField(false); view.highlightDirectoryNameField(false); view.setInputsEnableState(true); view.focusInUrlInput(); } @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 testGo() { AcceptsOneWidget container = mock(AcceptsOneWidget.class); presenter.go(container); verify(container).setWidget(eq(view)); verify(view).setProjectName(anyString()); verify(view).setProjectDescription(anyString()); verify(view).setProjectVisibility(anyBoolean()); verify(view).setProjectUrl(anyString()); verify(view).setInputsEnableState(eq(true)); verify(view).focusInUrlInput(); }