GithubImporterPagePresenter extends AbstractWizardPage<ImportProject> implements GithubImporterPageView.ActionDelegate { @Override public void go(@NotNull AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setKeepDirectoryChecked(false); view.setDirectoryName(""); view.enableDirectoryNameField(false); view.highlightDirectoryNameField(false); view.setInputsEnableState(true); view.focusInUrlInput(); } @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 testGo() throws Exception { String importerDescription = "description"; AcceptsOneWidget container = mock(AcceptsOneWidget.class); ProjectImporterDescriptor projectImporter = mock(ProjectImporterDescriptor.class); when(projectImporter.getDescription()).thenReturn(importerDescription); presenter.go(container); verify(view).setInputsEnableState(eq(true)); verify(container).setWidget(eq(view)); verify(view).focusInUrlInput(); }