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: saveRequestEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      EventSourceMock<SaveRequestEvent> saveRequestEvent;
test_class.type: EventSourceMock<SaveRequestEvent>
test_class.var_name: saveRequestEvent
test_class.declarator: testDataSetEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      EventSourceMock<TestDataSetRequestEvent> testDataSetEvent;
test_class.type: EventSourceMock<TestDataSetRequestEvent>
test_class.var_name: testDataSetEvent
test_class.declarator: cancelRequestEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      EventSourceMock<CancelRequestEvent> cancelRequestEvent;
test_class.type: EventSourceMock<CancelRequestEvent>
test_class.var_name: cancelRequestEvent
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: dataSetDef
test_class.modifier: @Mock
test_class.original_string: @Mock
      SQLDataSetDef dataSetDef;
test_class.type: SQLDataSetDef
test_class.var_name: dataSetDef
test_class.declarator: basicAttributesEditor
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetDefBasicAttributesEditor basicAttributesEditor;
test_class.type: DataSetDefBasicAttributesEditor
test_class.var_name: basicAttributesEditor
test_class.declarator: sqlDataSetDefAttributesEditor
test_class.modifier: @Mock
test_class.original_string: @Mock
      org.dashbuilder.client.widgets.dataset.editor.sql.SQLDataSetDefAttributesEditor sqlDataSetDefAttributesEditor;
test_class.type: org.dashbuilder.client.widgets.dataset.editor.sql.SQLDataSetDefAttributesEditor
test_class.var_name: sqlDataSetDefAttributesEditor
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetEditorWorkflow.View view;
test_class.type: DataSetEditorWorkflow.View
test_class.var_name: view
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private SQLDataSetBasicAttributesWorkflow presenter;
test_class.type: SQLDataSetBasicAttributesWorkflow
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/SQLDataSetBasicAttributesWorkflowTest.java
test_class.identifier: SQLDataSetBasicAttributesWorkflowTest
test_class.superclass: extends AbstractDataSetWorkflowTest
test_case.body: @Test
      public void testValidateUsingQuery() {
          presenter._setDataSetDef( dataSetDef );
          presenter.editor = sqlDataSetDefAttributesEditor;
          when( sqlDataSetDefAttributesEditor.isUsingQuery() ).thenReturn( true );
          presenter.validate();
          verify( sqlDataSetDefValidator, times( 1 ) ).validateCustomAttributes( any( SQLDataSetDef.class ), eq( true ) );
          verify( sqlDataSetDefValidator, times( 0 ) ).validate( any( SQLDataSetDef.class ),
                                                                 anyBoolean(),
                                                                 anyBoolean(),
                                                                 anyBoolean() );
      }
test_case.class_method_signature: SQLDataSetBasicAttributesWorkflowTest.testValidateUsingQuery()
test_case.full_signature: @Test public void testValidateUsingQuery()
test_case.identifier: testValidateUsingQuery
test_case.invocations: _setDataSetDef thenReturn when isUsingQuery validate validateCustomAttributes verify times any eq validate verify times any anyBoolean anyBoolean anyBoolean
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateUsingQuery()
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/SQLDataSetBasicAttributesWorkflow.java
focal_class.identifier: SQLDataSetBasicAttributesWorkflow
focal_class.class_method_signature: SQLDataSetBasicAttributesWorkflow.SQLDataSetBasicAttributesWorkflow( final DataSetClientServices clientServices,
                                                final DataSetValidatorProvider validatorProvider,
                                                final SyncBeanManager beanManager,
                                                final DataSetDefBasicAttributesEditor basicAttributesEditor,
                                                final Event<SaveRequestEvent> saveRequestEvent,
                                                final Event<TestDataSetRequestEvent> testDataSetEvent,
                                                final Event<CancelRequestEvent> cancelRequestEvent,
                                                final View view )
focal_class.full_signature: @Inject public  SQLDataSetBasicAttributesWorkflow( final DataSetClientServices clientServices,
                                                final DataSetValidatorProvider validatorProvider,
                                                final SyncBeanManager beanManager,
                                                final DataSetDefBasicAttributesEditor basicAttributesEditor,
                                                final Event<SaveRequestEvent> saveRequestEvent,
                                                final Event<TestDataSetRequestEvent> testDataSetEvent,
                                                final Event<CancelRequestEvent> cancelRequestEvent,
                                                final View view )
focal_class.identifier: SQLDataSetBasicAttributesWorkflow
focal_class.modifiers: @Inject public
focal_class.parameters: ( final DataSetClientServices clientServices,
                                                final DataSetValidatorProvider validatorProvider,
                                                final SyncBeanManager beanManager,
                                                final DataSetDefBasicAttributesEditor basicAttributesEditor,
                                                final Event<SaveRequestEvent> saveRequestEvent,
                                                final Event<TestDataSetRequestEvent> testDataSetEvent,
                                                final Event<CancelRequestEvent> cancelRequestEvent,
                                                final View view )
focal_class.signature:  SQLDataSetBasicAttributesWorkflow( final DataSetClientServices clientServices,
                                                final DataSetValidatorProvider validatorProvider,
                                                final SyncBeanManager beanManager,
                                                final DataSetDefBasicAttributesEditor basicAttributesEditor,
                                                final Event<SaveRequestEvent> saveRequestEvent,
                                                final Event<TestDataSetRequestEvent> testDataSetEvent,
                                                final Event<CancelRequestEvent> cancelRequestEvent,
                                                final View view )
focal_class.class_method_signature: SQLDataSetBasicAttributesWorkflow.getDriverClass()
focal_class.full_signature: @Override protected Class<? extends SimpleBeanEditorDriver<SQLDataSetDef, SQLDataSetDefAttributesEditor>> getDriverClass()
focal_class.identifier: getDriverClass
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Class<? extends SimpleBeanEditorDriver<SQLDataSetDef, SQLDataSetDefAttributesEditor>>
focal_class.signature: Class<? extends SimpleBeanEditorDriver<SQLDataSetDef, SQLDataSetDefAttributesEditor>> getDriverClass()
focal_class.class_method_signature: SQLDataSetBasicAttributesWorkflow.getEditorClass()
focal_class.full_signature: @Override protected Class<? extends SQLDataSetDefAttributesEditor> getEditorClass()
focal_class.identifier: getEditorClass
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Class<? extends SQLDataSetDefAttributesEditor>
focal_class.signature: Class<? extends SQLDataSetDefAttributesEditor> getEditorClass()
focal_class.class_method_signature: SQLDataSetBasicAttributesWorkflow.validate()
focal_class.full_signature: @Override protected Iterable<ConstraintViolation<?>> validate()
focal_class.identifier: validate
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Iterable<ConstraintViolation<?>>
focal_class.signature: Iterable<ConstraintViolation<?>> validate()
focal_class.class_method_signature: SQLDataSetBasicAttributesWorkflow.afterFlush()
focal_class.full_signature: @Override protected void afterFlush()
focal_class.identifier: afterFlush
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void afterFlush()
focal_class.superclass: extends DataSetBasicAttributesWorkflow<SQLDataSetDef, SQLDataSetDefAttributesEditor>
focal_method.body: @Override
      protected Iterable<ConstraintViolation<?>> validate() {
          return validatorProvider.validateAttributes( getDataSetDef(), editor.isUsingQuery() );
      }
focal_method.class_method_signature: SQLDataSetBasicAttributesWorkflow.validate()
focal_method.full_signature: @Override protected Iterable<ConstraintViolation<?>> validate()
focal_method.identifier: validate
focal_method.invocations: validateAttributes getDataSetDef isUsingQuery
focal_method.modifiers: @Override protected
focal_method.parameters: ()
focal_method.return: Iterable<ConstraintViolation<?>>
focal_method.signature: Iterable<ConstraintViolation<?>> validate()