test_class.declarator: changeTitleNotification
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<ChangeTitleWidgetEvent> changeTitleNotification;
test_class.type: EventSourceMock<ChangeTitleWidgetEvent>
test_class.var_name: changeTitleNotification
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: versionRecordManager
test_class.modifier: @Mock
test_class.original_string: @Mock VersionRecordManager versionRecordManager;
test_class.type: VersionRecordManager
test_class.var_name: versionRecordManager
test_class.declarator: menuBuilder
test_class.modifier: @Mock
test_class.original_string: @Mock BasicFileMenuBuilder menuBuilder;
test_class.type: BasicFileMenuBuilder
test_class.var_name: menuBuilder
test_class.declarator: fileNameValidator
test_class.modifier: @Mock
test_class.original_string: @Mock DefaultFileNameValidator fileNameValidator;
test_class.type: DefaultFileNameValidator
test_class.var_name: fileNameValidator
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: placeRequest
test_class.modifier: @Mock
test_class.original_string: @Mock PlaceRequest placeRequest;
test_class.type: PlaceRequest
test_class.var_name: placeRequest
test_class.declarator: observablePath
test_class.modifier: @Mock
test_class.original_string: @Mock ObservablePath observablePath;
test_class.type: ObservablePath
test_class.var_name: observablePath
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: resourceType
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefType resourceType;
test_class.type: DataSetDefType
test_class.var_name: resourceType
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: dataSetDefVfsServices
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefVfsServices dataSetDefVfsServices;
test_class.type: DataSetDefVfsServices
test_class.var_name: dataSetDefVfsServices
test_class.declarator: dataSetDef
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDef dataSetDef;
test_class.type: DataSetDef
test_class.var_name: dataSetDef
test_class.declarator: dataSetDefEditor
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefEditor dataSetDefEditor;
test_class.type: DataSetDefEditor
test_class.var_name: dataSetDefEditor
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: 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: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private DataSetDefEditorPresenter presenter;
test_class.type: DataSetDefEditorPresenter
test_class.var_name: presenter
test_class.declarator: columns = mock(List.class)
test_class.modifier: final
test_class.original_string: final List<DataColumnDef> columns = mock(List.class);
test_class.type: List<DataColumnDef>
test_class.var_name: columns
test_class.declarator: editWorkflow = mock(DataSetEditWorkflow.class)
test_class.modifier: final
test_class.original_string: final DataSetEditWorkflow editWorkflow = mock(DataSetEditWorkflow.class);
test_class.type: DataSetEditWorkflow
test_class.var_name: editWorkflow
test_class.file: dashbuilder-client/dashbuilder-dataset-editor/src/test/java/org/dashbuilder/dataset/editor/client/screens/DataSetDefEditorPresenterTest.java
test_class.identifier: DataSetDefEditorPresenterTest
test_case.body: @Test
      public void testShowError() {
          final ClientRuntimeError error = mock(ClientRuntimeError.class);
          when(error.getCause()).thenReturn("errorCause");
          presenter.showError(error);
          verify(errorPopupPresenter, times(1)).showMessage(anyString());
          verify(view, times(0)).setWidget(any(IsWidget.class));
          verify(editWorkflow, times(0)).clear();
          verify(editWorkflow, times(0)).clearButtons();
          verify(editWorkflow, times(0)).showTestButton();
          verify(editWorkflow, times(0)).showNextButton();
          verify(editWorkflow, times(0)).showBackButton();
          verify(editWorkflow, times(0)).edit(any(DataSetDef.class), any(List.class));
      }
test_case.class_method_signature: DataSetDefEditorPresenterTest.testShowError()
test_case.full_signature: @Test public void testShowError()
test_case.identifier: testShowError
test_case.invocations: mock thenReturn when getCause showError showMessage verify times anyString setWidget verify times any clear verify times clearButtons verify times showTestButton verify times showNextButton verify times showBackButton verify times edit verify times any any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testShowError()
focal_class.declarator: beanManager
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: workflowFactory
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      DataSetEditorWorkflowFactory workflowFactory;
focal_class.type: DataSetEditorWorkflowFactory
focal_class.var_name: workflowFactory
focal_class.declarator: services
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      Caller<DataSetDefVfsServices> services;
focal_class.type: Caller<DataSetDefVfsServices>
focal_class.var_name: services
focal_class.declarator: placeManager
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      PlaceManager placeManager;
focal_class.type: PlaceManager
focal_class.var_name: placeManager
focal_class.declarator: resourceType
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      DataSetDefType resourceType;
focal_class.type: DataSetDefType
focal_class.var_name: resourceType
focal_class.declarator: errorPopupPresenter
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      ErrorPopupPresenter errorPopupPresenter;
focal_class.type: ErrorPopupPresenter
focal_class.var_name: errorPopupPresenter
focal_class.declarator: savePopUpPresenter
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      SavePopUpPresenter savePopUpPresenter;
focal_class.type: SavePopUpPresenter
focal_class.var_name: savePopUpPresenter
focal_class.declarator: view
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public DataSetDefScreenView view;
focal_class.type: DataSetDefScreenView
focal_class.var_name: view
focal_class.declarator: workflow
focal_class.original_string: DataSetEditWorkflow workflow;
focal_class.type: DataSetEditWorkflow
focal_class.var_name: workflow
focal_class.declarator: getDefinitionCallback = result -> {
          load(result,
               result != null ? result.getColumns() : null);
      }
focal_class.original_string: RemoteCallback<DataSetDef> getDefinitionCallback = result -> {
          load(result,
               result != null ? result.getColumns() : null);
      };
focal_class.type: RemoteCallback<DataSetDef>
focal_class.var_name: getDefinitionCallback
focal_class.declarator: loadCallback = result -> {
          load(result != null ? result.getDefinition() : null,
               result != null ? result.getColumns() : null);
      }
focal_class.original_string: RemoteCallback<EditDataSetDef> loadCallback = result -> {
          load(result != null ? result.getDefinition() : null,
               result != null ? result.getColumns() : null);
      };
focal_class.type: RemoteCallback<EditDataSetDef>
focal_class.var_name: loadCallback
focal_class.declarator: errorCallback = (message, throwable) -> {
          // Edit only the definition, so user can fix the wrong attributes, if any.
          loadDefinition();
          return false;
      }
focal_class.original_string: ErrorCallback<Message> errorCallback = (message, throwable) -> {
          // Edit only the definition, so user can fix the wrong attributes, if any.
          loadDefinition();
          return false;
      };
focal_class.type: ErrorCallback<Message>
focal_class.var_name: errorCallback
focal_class.declarator: getDefinitionErrorCallback = new ErrorCallback<Message>() {
          @Override
          public boolean error(Message message,
                               Throwable throwable) {
              view.hideBusyIndicator();
              showError(new ClientRuntimeError(throwable));
              return false;
          }
      }
focal_class.original_string: ErrorCallback<Message> getDefinitionErrorCallback = new ErrorCallback<Message>() {
          @Override
          public boolean error(Message message,
                               Throwable throwable) {
              view.hideBusyIndicator();
              showError(new ClientRuntimeError(throwable));
              return false;
          }
      };
focal_class.type: ErrorCallback<Message>
focal_class.var_name: getDefinitionErrorCallback
focal_class.file: dashbuilder-client/dashbuilder-dataset-editor/src/main/java/org/dashbuilder/dataset/editor/client/screens/DataSetDefEditorPresenter.java
focal_class.identifier: DataSetDefEditorPresenter
focal_class.class_method_signature: DataSetDefEditorPresenter.onStartup(final ObservablePath path,
                            final PlaceRequest place)
focal_class.full_signature: @OnStartup public void onStartup(final ObservablePath path,
                            final PlaceRequest place)
focal_class.identifier: onStartup
focal_class.modifiers: @OnStartup public
focal_class.parameters: (final ObservablePath path,
                            final PlaceRequest place)
focal_class.return: void
focal_class.signature: void onStartup(final ObservablePath path,
                            final PlaceRequest place)
focal_class.class_method_signature: DataSetDefEditorPresenter.getTitle()
focal_class.full_signature: @WorkbenchPartTitleDecoration public IsWidget getTitle()
focal_class.identifier: getTitle
focal_class.modifiers: @WorkbenchPartTitleDecoration public
focal_class.parameters: ()
focal_class.return: IsWidget
focal_class.signature: IsWidget getTitle()
focal_class.class_method_signature: DataSetDefEditorPresenter.getTitleText()
focal_class.full_signature: @WorkbenchPartTitle public String getTitleText()
focal_class.identifier: getTitleText
focal_class.modifiers: @WorkbenchPartTitle public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTitleText()
focal_class.class_method_signature: DataSetDefEditorPresenter.buildTitle()
focal_class.full_signature: protected String buildTitle()
focal_class.identifier: buildTitle
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String buildTitle()
focal_class.class_method_signature: DataSetDefEditorPresenter.getMenus()
focal_class.full_signature: @WorkbenchMenu public Menus getMenus()
focal_class.identifier: getMenus
focal_class.modifiers: @WorkbenchMenu public
focal_class.parameters: ()
focal_class.return: Menus
focal_class.signature: Menus getMenus()
focal_class.class_method_signature: DataSetDefEditorPresenter.getWidget()
focal_class.full_signature: @WorkbenchPartView public Widget getWidget()
focal_class.identifier: getWidget
focal_class.modifiers: @WorkbenchPartView public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget getWidget()
focal_class.class_method_signature: DataSetDefEditorPresenter.onMayClose()
focal_class.full_signature: @OnMayClose public boolean onMayClose()
focal_class.identifier: onMayClose
focal_class.modifiers: @OnMayClose public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean onMayClose()
focal_class.class_method_signature: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.loadContent()
focal_class.full_signature: @Override protected void loadContent()
focal_class.identifier: loadContent
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadContent()
focal_class.class_method_signature: DataSetDefEditorPresenter.loadDefinition()
focal_class.full_signature: private void loadDefinition()
focal_class.identifier: loadDefinition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadDefinition()
focal_class.class_method_signature: DataSetDefEditorPresenter.getDataSetDef()
focal_class.full_signature: public DataSetDef getDataSetDef()
focal_class.identifier: getDataSetDef
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetDef
focal_class.signature: DataSetDef getDataSetDef()
focal_class.class_method_signature: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.edit(final DataSetDef dataSetDef,
                        final List<DataColumnDef> columnDefs)
focal_class.full_signature: private void edit(final DataSetDef dataSetDef,
                        final List<DataColumnDef> columnDefs)
focal_class.identifier: edit
focal_class.modifiers: private
focal_class.parameters: (final DataSetDef dataSetDef,
                        final List<DataColumnDef> columnDefs)
focal_class.return: void
focal_class.signature: void edit(final DataSetDef dataSetDef,
                        final List<DataColumnDef> columnDefs)
focal_class.class_method_signature: DataSetDefEditorPresenter.edit(final DataSet dataset)
focal_class.full_signature: private void edit(final DataSet dataset)
focal_class.identifier: edit
focal_class.modifiers: private
focal_class.parameters: (final DataSet dataset)
focal_class.return: void
focal_class.signature: void edit(final DataSet dataset)
focal_class.class_method_signature: DataSetDefEditorPresenter.onValidate()
focal_class.full_signature: @Override protected Command onValidate()
focal_class.identifier: onValidate
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Command
focal_class.signature: Command onValidate()
focal_class.class_method_signature: DataSetDefEditorPresenter.save()
focal_class.full_signature: @Override protected void save()
focal_class.identifier: save
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void save()
focal_class.class_method_signature: DataSetDefEditorPresenter.getCurrentModelHash()
focal_class.full_signature: public int getCurrentModelHash()
focal_class.identifier: getCurrentModelHash
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCurrentModelHash()
focal_class.class_method_signature: DataSetDefEditorPresenter.disposeWorkflow()
focal_class.full_signature: public void disposeWorkflow()
focal_class.identifier: disposeWorkflow
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void disposeWorkflow()
focal_class.class_method_signature: DataSetDefEditorPresenter.load(final DataSetDef dataSetDef,
                          List<DataColumnDef> columns)
focal_class.full_signature: protected void load(final DataSetDef dataSetDef,
                          List<DataColumnDef> columns)
focal_class.identifier: load
focal_class.modifiers: protected
focal_class.parameters: (final DataSetDef dataSetDef,
                          List<DataColumnDef> columns)
focal_class.return: void
focal_class.signature: void load(final DataSetDef dataSetDef,
                          List<DataColumnDef> columns)
focal_class.class_method_signature: DataSetDefEditorPresenter.getDeleteServiceCaller()
focal_class.full_signature: protected Caller<? extends SupportsDelete> getDeleteServiceCaller()
focal_class.identifier: getDeleteServiceCaller
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Caller<? extends SupportsDelete>
focal_class.signature: Caller<? extends SupportsDelete> getDeleteServiceCaller()
focal_class.class_method_signature: DataSetDefEditorPresenter.getCopyServiceCaller()
focal_class.full_signature: protected Caller<? extends SupportsCopy> getCopyServiceCaller()
focal_class.identifier: getCopyServiceCaller
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Caller<? extends SupportsCopy>
focal_class.signature: Caller<? extends SupportsCopy> getCopyServiceCaller()
focal_class.class_method_signature: DataSetDefEditorPresenter.onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_class.full_signature: private void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_class.identifier: onDataSetDefRemovedEvent
focal_class.modifiers: private
focal_class.parameters: (@Observes DataSetDefRemovedEvent event)
focal_class.return: void
focal_class.signature: void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_class.class_method_signature: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.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: DataSetDefEditorPresenter.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_class.superclass: extends BaseEditor
focal_method.body: void showError(final ClientRuntimeError error) {
          final String message = error.getCause() != null ? error.getCause() : error.getMessage();
          showError(message);
      }
focal_method.class_method_signature: DataSetDefEditorPresenter.showError(final ClientRuntimeError error)
focal_method.full_signature:  void showError(final ClientRuntimeError error)
focal_method.identifier: showError
focal_method.invocations: getCause getCause getMessage showError
focal_method.parameters: (final ClientRuntimeError error)
focal_method.return: void
focal_method.signature: void showError(final ClientRuntimeError error)