test_class.declarator: notification
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<NotificationEvent> notification;
test_class.type: EventSourceMock<NotificationEvent>
test_class.var_name: notification
test_class.declarator: placeManager
test_class.modifier: @Mock
test_class.original_string: @Mock PlaceManager placeManager;
test_class.type: PlaceManager
test_class.var_name: placeManager
test_class.declarator: beanManager
test_class.modifier: @Mock
test_class.original_string: @Mock SyncBeanManager beanManager;
test_class.type: SyncBeanManager
test_class.var_name: beanManager
test_class.declarator: workflowFactory
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetEditorWorkflowFactory workflowFactory;
test_class.type: DataSetEditorWorkflowFactory
test_class.var_name: workflowFactory
test_class.declarator: clientServices
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetClientServices clientServices;
test_class.type: DataSetClientServices
test_class.var_name: clientServices
test_class.declarator: errorPopupPresenter
test_class.modifier: @Mock
test_class.original_string: @Mock ErrorPopupPresenter errorPopupPresenter;
test_class.type: ErrorPopupPresenter
test_class.var_name: errorPopupPresenter
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefScreenView view;
test_class.type: DataSetDefScreenView
test_class.var_name: view
test_class.declarator: dataSetProviderTypeWorkflow
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetProviderTypeWorkflow dataSetProviderTypeWorkflow;
test_class.type: DataSetProviderTypeWorkflow
test_class.var_name: dataSetProviderTypeWorkflow
test_class.declarator: dataSetDef
test_class.modifier: @Mock
test_class.original_string: @Mock SQLDataSetDef dataSetDef;
test_class.type: SQLDataSetDef
test_class.var_name: dataSetDef
test_class.declarator: dataSetDefEditor
test_class.modifier: @Mock
test_class.original_string: @Mock SQLDataSetDefEditor dataSetDefEditor;
test_class.type: SQLDataSetDefEditor
test_class.var_name: dataSetDefEditor
test_class.declarator: dataSetBasicAttributesWorkflow
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetBasicAttributesWorkflow dataSetBasicAttributesWorkflow;
test_class.type: DataSetBasicAttributesWorkflow
test_class.var_name: dataSetBasicAttributesWorkflow
test_class.declarator: editWorkflow
test_class.modifier: @Mock
test_class.original_string: @Mock SQLDataSetEditWorkflow editWorkflow;
test_class.type: SQLDataSetEditWorkflow
test_class.var_name: editWorkflow
test_class.declarator: dataSetDefVfsServices
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefVfsServices dataSetDefVfsServices;
test_class.type: DataSetDefVfsServices
test_class.var_name: dataSetDefVfsServices
test_class.declarator: savePopUpPresenter
test_class.modifier: @Mock
test_class.original_string: @Mock SavePopUpPresenter savePopUpPresenter;
test_class.type: SavePopUpPresenter
test_class.var_name: savePopUpPresenter
test_class.declarator: services
test_class.original_string: Caller<DataSetDefVfsServices> services;
test_class.type: Caller<DataSetDefVfsServices>
test_class.var_name: services
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private DataSetDefWizardScreen presenter;
test_class.type: DataSetDefWizardScreen
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-dataset-editor/src/test/java/org/dashbuilder/dataset/editor/client/screens/DataSetDefWizardScreenTest.java
test_class.identifier: DataSetDefWizardScreenTest
test_case.body: @Test
      public void testOnTabChangedEvent_ConfigurationTab() {
          when(editWorkflow.getEditor()).thenReturn(dataSetDefEditor);
          TabChangedEvent event = mock(TabChangedEvent.class);
          when(event.getContext()).thenReturn(dataSetDefEditor);
          when(event.getTabId()).thenReturn(DataSetEditor.TAB_CONFIGURATION);
          presenter.currentWorkflow = editWorkflow;
          presenter.onTabChangedEvent(event);
          verify(editWorkflow, times(1)).clearButtons();
          verify(editWorkflow, times(1)).showTestButton();
          verify(editWorkflow, times(0)).showNextButton();
          verify(editWorkflow, times(0)).showBackButton();
          verify(editWorkflow, times(0)).edit(any(SQLDataSetDef.class), any(List.class));
          verify(errorPopupPresenter, times(0)).showMessage(anyString());
          verify(view, times(0)).setWidget(any(IsWidget.class));
      }
test_case.class_method_signature: DataSetDefWizardScreenTest.testOnTabChangedEvent_ConfigurationTab()
test_case.full_signature: @Test public void testOnTabChangedEvent_ConfigurationTab()
test_case.identifier: testOnTabChangedEvent_ConfigurationTab
test_case.invocations: thenReturn when getEditor mock thenReturn when getContext thenReturn when getTabId onTabChangedEvent clearButtons verify times showTestButton verify times showNextButton verify times showBackButton verify times edit verify times any any showMessage verify times anyString setWidget verify times any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnTabChangedEvent_ConfigurationTab()
focal_class.declarator: beanManager
focal_class.original_string: SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: workflowFactory
focal_class.original_string: DataSetEditorWorkflowFactory workflowFactory;
focal_class.type: DataSetEditorWorkflowFactory
focal_class.var_name: workflowFactory
focal_class.declarator: services
focal_class.original_string: Caller<DataSetDefVfsServices> services;
focal_class.type: Caller<DataSetDefVfsServices>
focal_class.var_name: services
focal_class.declarator: clientServices
focal_class.original_string: DataSetClientServices clientServices;
focal_class.type: DataSetClientServices
focal_class.var_name: clientServices
focal_class.declarator: notification
focal_class.original_string: Event<NotificationEvent> notification;
focal_class.type: Event<NotificationEvent>
focal_class.var_name: notification
focal_class.declarator: placeManager
focal_class.original_string: PlaceManager placeManager;
focal_class.type: PlaceManager
focal_class.var_name: placeManager
focal_class.declarator: errorPopupPresenter
focal_class.original_string: ErrorPopupPresenter errorPopupPresenter;
focal_class.type: ErrorPopupPresenter
focal_class.var_name: errorPopupPresenter
focal_class.declarator: view
focal_class.modifier: public
focal_class.original_string: public DataSetDefScreenView view;
focal_class.type: DataSetDefScreenView
focal_class.var_name: view
focal_class.declarator: placeRequest
focal_class.original_string: PlaceRequest placeRequest;
focal_class.type: PlaceRequest
focal_class.var_name: placeRequest
focal_class.declarator: nextCommand
focal_class.original_string: Command nextCommand;
focal_class.type: Command
focal_class.var_name: nextCommand
focal_class.declarator: currentWorkflow
focal_class.original_string: DataSetEditorWorkflow currentWorkflow;
focal_class.type: DataSetEditorWorkflow
focal_class.var_name: currentWorkflow
focal_class.declarator: savePopUpPresenter
focal_class.original_string: SavePopUpPresenter savePopUpPresenter;
focal_class.type: SavePopUpPresenter
focal_class.var_name: savePopUpPresenter
focal_class.declarator: saveSuccessCallback = new RemoteCallback<Path>() {
          @Override
          public void callback(Path path) {
              currentWorkflow.clear();
              BusyPopup.close();
              notification.fire(new NotificationEvent(DataSetAuthoringConstants.INSTANCE.savedOk()));
              placeManager.closePlace(placeRequest);
          }
      }
focal_class.original_string: RemoteCallback<Path> saveSuccessCallback = new RemoteCallback<Path>() {
          @Override
          public void callback(Path path) {
              currentWorkflow.clear();
              BusyPopup.close();
              notification.fire(new NotificationEvent(DataSetAuthoringConstants.INSTANCE.savedOk()));
              placeManager.closePlace(placeRequest);
          }
      };
focal_class.type: RemoteCallback<Path>
focal_class.var_name: saveSuccessCallback
focal_class.declarator: errorCallback = (message, throwable) -> {
          BusyPopup.close();
          showError(new ClientRuntimeError(throwable));
          return false;
      }
focal_class.original_string: ErrorCallback<Message> errorCallback = (message, throwable) -> {
          BusyPopup.close();
          showError(new ClientRuntimeError(throwable));
          return false;
      };
focal_class.type: ErrorCallback<Message>
focal_class.var_name: errorCallback
focal_class.file: dashbuilder-client/dashbuilder-dataset-editor/src/main/java/org/dashbuilder/dataset/editor/client/screens/DataSetDefWizardScreen.java
focal_class.identifier: DataSetDefWizardScreen
focal_class.class_method_signature: DataSetDefWizardScreen.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)
focal_class.full_signature: @Inject public  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)
focal_class.identifier: DataSetDefWizardScreen
focal_class.modifiers: @Inject public
focal_class.parameters: (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)
focal_class.signature:  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)
focal_class.class_method_signature: DataSetDefWizardScreen.getTitle()
focal_class.full_signature: @WorkbenchPartTitle public String getTitle()
focal_class.identifier: getTitle
focal_class.modifiers: @WorkbenchPartTitle public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTitle()
focal_class.class_method_signature: DataSetDefWizardScreen.getView()
focal_class.full_signature: @WorkbenchPartView public IsWidget getView()
focal_class.identifier: getView
focal_class.modifiers: @WorkbenchPartView public
focal_class.parameters: ()
focal_class.return: IsWidget
focal_class.signature: IsWidget getView()
focal_class.class_method_signature: DataSetDefWizardScreen.init(PlaceRequest placeRequest)
focal_class.full_signature: @OnStartup public void init(PlaceRequest placeRequest)
focal_class.identifier: init
focal_class.modifiers: @OnStartup public
focal_class.parameters: (PlaceRequest placeRequest)
focal_class.return: void
focal_class.signature: void init(PlaceRequest placeRequest)
focal_class.class_method_signature: DataSetDefWizardScreen.onClose()
focal_class.full_signature: @OnClose public void onClose()
focal_class.identifier: onClose
focal_class.modifiers: @OnClose public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onClose()
focal_class.class_method_signature: DataSetDefWizardScreen.providerTypeEdition()
focal_class.full_signature: private void providerTypeEdition()
focal_class.identifier: providerTypeEdition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void providerTypeEdition()
focal_class.class_method_signature: DataSetDefWizardScreen.onProviderTypeSelected(final DataSetProviderTypeWorkflow providerTypeWorkflow)
focal_class.full_signature:  void onProviderTypeSelected(final DataSetProviderTypeWorkflow providerTypeWorkflow)
focal_class.identifier: onProviderTypeSelected
focal_class.parameters: (final DataSetProviderTypeWorkflow providerTypeWorkflow)
focal_class.return: void
focal_class.signature: void onProviderTypeSelected(final DataSetProviderTypeWorkflow providerTypeWorkflow)
focal_class.class_method_signature: DataSetDefWizardScreen.setCurrentWorkflow(final DataSetEditorWorkflow w)
focal_class.full_signature: private void setCurrentWorkflow(final DataSetEditorWorkflow w)
focal_class.identifier: setCurrentWorkflow
focal_class.modifiers: private
focal_class.parameters: (final DataSetEditorWorkflow w)
focal_class.return: void
focal_class.signature: void setCurrentWorkflow(final DataSetEditorWorkflow w)
focal_class.class_method_signature: DataSetDefWizardScreen.disposeCurrentWorkflow()
focal_class.full_signature: private void disposeCurrentWorkflow()
focal_class.identifier: disposeCurrentWorkflow
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void disposeCurrentWorkflow()
focal_class.class_method_signature: DataSetDefWizardScreen.basicAttributesEdition(final DataSetDef typedDataSetDef)
focal_class.full_signature: private void basicAttributesEdition(final DataSetDef typedDataSetDef)
focal_class.identifier: basicAttributesEdition
focal_class.modifiers: private
focal_class.parameters: (final DataSetDef typedDataSetDef)
focal_class.return: void
focal_class.signature: void basicAttributesEdition(final DataSetDef typedDataSetDef)
focal_class.class_method_signature: DataSetDefWizardScreen.testDataSet()
focal_class.full_signature: private void testDataSet()
focal_class.identifier: testDataSet
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void testDataSet()
focal_class.class_method_signature: DataSetDefWizardScreen.completeEdition(final DataSetDef dataSetDef,
                                  final DataSet dataset)
focal_class.full_signature: public void completeEdition(final DataSetDef dataSetDef,
                                  final DataSet dataset)
focal_class.identifier: completeEdition
focal_class.modifiers: public
focal_class.parameters: (final DataSetDef dataSetDef,
                                  final DataSet dataset)
focal_class.return: void
focal_class.signature: void completeEdition(final DataSetDef dataSetDef,
                                  final DataSet dataset)
focal_class.class_method_signature: DataSetDefWizardScreen.save()
focal_class.full_signature: protected void save()
focal_class.identifier: save
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void save()
focal_class.class_method_signature: DataSetDefWizardScreen.onSave(final DataSetDef dataSetDef,
                  final String message)
focal_class.full_signature:  void onSave(final DataSetDef dataSetDef,
                  final String message)
focal_class.identifier: onSave
focal_class.parameters: (final DataSetDef dataSetDef,
                  final String message)
focal_class.return: void
focal_class.signature: void onSave(final DataSetDef dataSetDef,
                  final String message)
focal_class.class_method_signature: DataSetDefWizardScreen.showError(final ClientRuntimeError error)
focal_class.full_signature:  void showError(final ClientRuntimeError error)
focal_class.identifier: showError
focal_class.parameters: (final ClientRuntimeError error)
focal_class.return: void
focal_class.signature: void showError(final ClientRuntimeError error)
focal_class.class_method_signature: DataSetDefWizardScreen.showError(final String message)
focal_class.full_signature:  void showError(final String message)
focal_class.identifier: showError
focal_class.parameters: (final String message)
focal_class.return: void
focal_class.signature: void showError(final String message)
focal_class.class_method_signature: DataSetDefWizardScreen.onTestEvent(@Observes TestDataSetRequestEvent testDataSetRequestEvent)
focal_class.full_signature:  void onTestEvent(@Observes TestDataSetRequestEvent testDataSetRequestEvent)
focal_class.identifier: onTestEvent
focal_class.parameters: (@Observes TestDataSetRequestEvent testDataSetRequestEvent)
focal_class.return: void
focal_class.signature: void onTestEvent(@Observes TestDataSetRequestEvent testDataSetRequestEvent)
focal_class.class_method_signature: DataSetDefWizardScreen.onSaveEvent(@Observes SaveRequestEvent saveEvent)
focal_class.full_signature:  void onSaveEvent(@Observes SaveRequestEvent saveEvent)
focal_class.identifier: onSaveEvent
focal_class.parameters: (@Observes SaveRequestEvent saveEvent)
focal_class.return: void
focal_class.signature: void onSaveEvent(@Observes SaveRequestEvent saveEvent)
focal_class.class_method_signature: DataSetDefWizardScreen.onCancelEvent(@Observes CancelRequestEvent cancelEvent)
focal_class.full_signature:  void onCancelEvent(@Observes CancelRequestEvent cancelEvent)
focal_class.identifier: onCancelEvent
focal_class.parameters: (@Observes CancelRequestEvent cancelEvent)
focal_class.return: void
focal_class.signature: void onCancelEvent(@Observes CancelRequestEvent cancelEvent)
focal_class.class_method_signature: DataSetDefWizardScreen.onErrorEvent(@Observes ErrorEvent errorEvent)
focal_class.full_signature:  void onErrorEvent(@Observes ErrorEvent errorEvent)
focal_class.identifier: onErrorEvent
focal_class.parameters: (@Observes ErrorEvent errorEvent)
focal_class.return: void
focal_class.signature: void onErrorEvent(@Observes ErrorEvent errorEvent)
focal_class.class_method_signature: DataSetDefWizardScreen.onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)
focal_class.full_signature:  void onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)
focal_class.identifier: onTabChangedEvent
focal_class.parameters: (@Observes TabChangedEvent tabChangedEvent)
focal_class.return: void
focal_class.signature: void onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)
focal_method.body: void onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent) {
          checkNotNull("tabChangedEvent",
                       tabChangedEvent);
          try {
              // This event should only be fired when worklow is an instance of the DataSetEditWorkflow, as it uses the main tabbed editor. 
              if (tabChangedEvent.getContext().equals(((DataSetEditWorkflow) currentWorkflow).getEditor())) {
                  currentWorkflow.clearButtons();
                  String tabId = tabChangedEvent.getTabId();
                  if (tabId != null && DataSetEditor.TAB_CONFIGURATION.equals(tabId)) {
                      currentWorkflow.showTestButton();
                  } else {
                      currentWorkflow.showBackButton().showNextButton();
                  }
              }
          } catch (final ClassCastException e) {
              // Skip event.
          }
      }
focal_method.class_method_signature: DataSetDefWizardScreen.onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)
focal_method.full_signature:  void onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)
focal_method.identifier: onTabChangedEvent
focal_method.invocations: checkNotNull equals getContext getEditor clearButtons getTabId equals showTestButton showNextButton showBackButton
focal_method.parameters: (@Observes TabChangedEvent tabChangedEvent)
focal_method.return: void
focal_method.signature: void onTabChangedEvent(@Observes TabChangedEvent tabChangedEvent)