@Test public void testStartProviderConfigured() { wizard.start(providerType); verify(handlerRegistry, times(2)).getProviderHandler(providerType.getKey()); verify(providerHandler, times(2)).getFormResolver(); verify(formResolver, times(1)).newProviderConfigurationForm(); verify(configurationPage, times(1)).setProviderConfigurationForm(configurationForm); }
public void start(final ProviderType providerType) { this.providerType = providerType; this.providerConfigurationForm = getProviderConfigurationForm(providerType.getKey()); if (providerConfigurationForm != null) { providerConfigurationPage.setProviderConfigurationForm(providerConfigurationForm); clear(); super.start(); } else { popupHelper.showErrorPopup(translationService.format( NewProviderWizard_ProviderNotProperlyConfiguredInSystemErrorMessage, (providerType != null ? providerType.getName() : null))); } }
NewProviderWizard extends AbstractMultiPageWizard { public void start(final ProviderType providerType) { this.providerType = providerType; this.providerConfigurationForm = getProviderConfigurationForm(providerType.getKey()); if (providerConfigurationForm != null) { providerConfigurationPage.setProviderConfigurationForm(providerConfigurationForm); clear(); super.start(); } else { popupHelper.showErrorPopup(translationService.format( NewProviderWizard_ProviderNotProperlyConfiguredInSystemErrorMessage, (providerType != null ? providerType.getName() : null))); } } }
NewProviderWizard extends AbstractMultiPageWizard { public void start(final ProviderType providerType) { this.providerType = providerType; this.providerConfigurationForm = getProviderConfigurationForm(providerType.getKey()); if (providerConfigurationForm != null) { providerConfigurationPage.setProviderConfigurationForm(providerConfigurationForm); clear(); super.start(); } else { popupHelper.showErrorPopup(translationService.format( NewProviderWizard_ProviderNotProperlyConfiguredInSystemErrorMessage, (providerType != null ? providerType.getName() : null))); } } @Inject  NewProviderWizard(final ProviderConfigurationPagePresenter providerConfigurationPage,
                             final ClientProviderHandlerRegistry handlerRegistry,
                             final PopupHelper popupHelper,
                             final TranslationService translationService,
                             final Caller<ProviderService> providerService,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent); }
NewProviderWizard extends AbstractMultiPageWizard { public void start(final ProviderType providerType) { this.providerType = providerType; this.providerConfigurationForm = getProviderConfigurationForm(providerType.getKey()); if (providerConfigurationForm != null) { providerConfigurationPage.setProviderConfigurationForm(providerConfigurationForm); clear(); super.start(); } else { popupHelper.showErrorPopup(translationService.format( NewProviderWizard_ProviderNotProperlyConfiguredInSystemErrorMessage, (providerType != null ? providerType.getName() : null))); } } @Inject  NewProviderWizard(final ProviderConfigurationPagePresenter providerConfigurationPage,
                             final ClientProviderHandlerRegistry handlerRegistry,
                             final PopupHelper popupHelper,
                             final TranslationService translationService,
                             final Caller<ProviderService> providerService,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent); @PostConstruct void init(); void start(final ProviderType providerType); @Override String getTitle(); @Override int getPreferredHeight(); @Override int getPreferredWidth(); @Override void complete(); }
NewProviderWizard extends AbstractMultiPageWizard { public void start(final ProviderType providerType) { this.providerType = providerType; this.providerConfigurationForm = getProviderConfigurationForm(providerType.getKey()); if (providerConfigurationForm != null) { providerConfigurationPage.setProviderConfigurationForm(providerConfigurationForm); clear(); super.start(); } else { popupHelper.showErrorPopup(translationService.format( NewProviderWizard_ProviderNotProperlyConfiguredInSystemErrorMessage, (providerType != null ? providerType.getName() : null))); } } @Inject  NewProviderWizard(final ProviderConfigurationPagePresenter providerConfigurationPage,
                             final ClientProviderHandlerRegistry handlerRegistry,
                             final PopupHelper popupHelper,
                             final TranslationService translationService,
                             final Caller<ProviderService> providerService,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent); @PostConstruct void init(); void start(final ProviderType providerType); @Override String getTitle(); @Override int getPreferredHeight(); @Override int getPreferredWidth(); @Override void complete();  }