@Test public void testInitProviderTypeEdition() { PlaceRequest placeRequest = mock(PlaceRequest.class); presenter.init(placeRequest); assertEquals(dataSetProviderTypeWorkflow, presenter.currentWorkflow); verify(workflowFactory, times(1)).providerType(); verify(view, times(1)).setWidget(any(IsWidget.class)); verify(dataSetProviderTypeWorkflow, times(1)).edit(any(DataSetDef.class)); verify(dataSetProviderTypeWorkflow, times(0)).showNextButton(); verify(dataSetProviderTypeWorkflow, times(0)).showTestButton(); verify(dataSetProviderTypeWorkflow, times(0)).showBackButton(); }
@OnStartup public void init(PlaceRequest placeRequest) { this.placeRequest = placeRequest; providerTypeEdition(); }
DataSetDefWizardScreen { @OnStartup public void init(PlaceRequest placeRequest) { this.placeRequest = placeRequest; providerTypeEdition(); } }
DataSetDefWizardScreen { @OnStartup public void init(PlaceRequest placeRequest) { this.placeRequest = placeRequest; providerTypeEdition(); } @Inject  DataSetDefWizardScreen(final SyncBeanManager beanManager,
                                  final DataSetEditorWorkflowFactory workflowFactory,
                                  final Caller<DataSetDefVfsServices> services,
                                  final DataSetClientServices clientServices,
                                  final Event<NotificationEvent> notification,
                                  final PlaceManager placeManager,
                                  final ErrorPopupPresenter errorPopupPresenter,
                                  final SavePopUpPresenter savePopUpPresenter,
                                  final DataSetDefScreenView view); }
DataSetDefWizardScreen { @OnStartup public void init(PlaceRequest placeRequest) { this.placeRequest = placeRequest; providerTypeEdition(); } @Inject  DataSetDefWizardScreen(final SyncBeanManager beanManager,
                                  final DataSetEditorWorkflowFactory workflowFactory,
                                  final Caller<DataSetDefVfsServices> services,
                                  final DataSetClientServices clientServices,
                                  final Event<NotificationEvent> notification,
                                  final PlaceManager placeManager,
                                  final ErrorPopupPresenter errorPopupPresenter,
                                  final SavePopUpPresenter savePopUpPresenter,
                                  final DataSetDefScreenView view); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getView(); @OnStartup void init(PlaceRequest placeRequest); @OnClose void onClose(); void completeEdition(final DataSetDef dataSetDef,
                                final DataSet dataset); }
DataSetDefWizardScreen { @OnStartup public void init(PlaceRequest placeRequest) { this.placeRequest = placeRequest; providerTypeEdition(); } @Inject  DataSetDefWizardScreen(final SyncBeanManager beanManager,
                                  final DataSetEditorWorkflowFactory workflowFactory,
                                  final Caller<DataSetDefVfsServices> services,
                                  final DataSetClientServices clientServices,
                                  final Event<NotificationEvent> notification,
                                  final PlaceManager placeManager,
                                  final ErrorPopupPresenter errorPopupPresenter,
                                  final SavePopUpPresenter savePopUpPresenter,
                                  final DataSetDefScreenView view); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getView(); @OnStartup void init(PlaceRequest placeRequest); @OnClose void onClose(); void completeEdition(final DataSetDef dataSetDef,
                                final DataSet dataset); public DataSetDefScreenView view; }