@Test public void testGo() { AcceptsOneWidget container = mock(AcceptsOneWidget.class); when(parameters.get(SKIP_FIRST_LEVEL_PARAM_NAME)).thenReturn("true"); presenter.go(container); verify(container).setWidget(eq(view)); verify(view).setProjectName(anyString()); verify(view).setProjectDescription(anyString()); verify(view).setVisibility(anyBoolean()); verify(view).setProjectUrl(anyString()); verify(view).setSkipFirstLevel(anyBoolean()); verify(view).setInputsEnableState(eq(true)); verify(view).focusInUrlInput(); }
@Override public void go(AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setInputsEnableState(true); view.focusInUrlInput(); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setInputsEnableState(true); view.focusInUrlInput(); } }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setInputsEnableState(true); view.focusInUrlInput(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setInputsEnableState(true); view.focusInUrlInput(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); @Override void init(ImportProject dataObject); @Override boolean isCompleted(); @Override void projectNameChanged(@Nonnull String name); @Override void projectUrlChanged(@Nonnull String url); @Override void projectDescriptionChanged(@Nonnull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void skipFirstLevelChanged(boolean isSkipFirstLevel); @Override void go(AcceptsOneWidget container); }
ZipImporterPagePresenter extends AbstractWizardPage<ImportProject> implements ZipImporterPageView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); updateView(); view.setInputsEnableState(true); view.focusInUrlInput(); } @Inject  ZipImporterPagePresenter(ZipImporterPageView view, CoreLocalizationConstant locale); @Override void init(ImportProject dataObject); @Override boolean isCompleted(); @Override void projectNameChanged(@Nonnull String name); @Override void projectUrlChanged(@Nonnull String url); @Override void projectDescriptionChanged(@Nonnull String projectDescription); @Override void projectVisibilityChanged(boolean visible); @Override void skipFirstLevelChanged(boolean isSkipFirstLevel); @Override void go(AcceptsOneWidget container);  }