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: basicAttributesEditor
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetDefBasicAttributesEditor basicAttributesEditor;
test_class.type: DataSetDefBasicAttributesEditor
test_class.var_name: basicAttributesEditor
test_class.declarator: dataSetDefBasicAttributesDriver
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetDefBasicAttributesDriver dataSetDefBasicAttributesDriver;
test_class.type: DataSetDefBasicAttributesDriver
test_class.var_name: dataSetDefBasicAttributesDriver
test_class.declarator: simpleBeanEditorDriverSyncBeanDef
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<DataSetDefBasicAttributesDriver> simpleBeanEditorDriverSyncBeanDef;
test_class.type: SyncBeanDef<DataSetDefBasicAttributesDriver>
test_class.var_name: simpleBeanEditorDriverSyncBeanDef
test_class.declarator: simpleEditorSyncBeanDef
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<DataSetDefBasicAttributesEditor> simpleEditorSyncBeanDef;
test_class.type: SyncBeanDef<DataSetDefBasicAttributesEditor>
test_class.var_name: simpleEditorSyncBeanDef
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 DataSetBasicAttributesWorkflow presenter;
test_class.type: DataSetBasicAttributesWorkflow
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/DataSetBasicAttributesWorkflowTest.java
test_class.identifier: DataSetBasicAttributesWorkflowTest
test_class.superclass: extends AbstractDataSetWorkflowTest
test_case.body: @Test
      public void testBasicAttributesEdition() {
          DataSetDef def = mock( DataSetDef.class );
          presenter.edit( def ).basicAttributesEdition();
          verify( beanManager, times( 2 ) ).lookupBean( DataSetDefBasicAttributesDriver.class );
          verify( dataSetDefBasicAttributesDriver, times( 2 ) ).initialize( basicAttributesEditor );
          verify( dataSetDefBasicAttributesDriver, times( 2 ) ).edit( def );
          verify( view, times( 2 ) ).clearView();
          verify( view, times( 2 ) ).add( any( IsWidget.class ) );
          verify( view, times( 0 ) ).init( presenter );
          verify( view, times( 0 ) ).addButton( anyString(), anyString(), anyBoolean(), any( Command.class ) );
          verify( view, times( 0 ) ).clearButtons();
      }
test_case.class_method_signature: DataSetBasicAttributesWorkflowTest.testBasicAttributesEdition()
test_case.full_signature: @Test public void testBasicAttributesEdition()
test_case.identifier: testBasicAttributesEdition
test_case.invocations: mock basicAttributesEdition edit lookupBean verify times initialize verify times edit verify times clearView verify times add verify times any init verify times addButton verify times anyString anyString anyBoolean any clearButtons verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBasicAttributesEdition()
focal_class.declarator: basicAttributesEditor
focal_class.original_string: DataSetDefBasicAttributesEditor basicAttributesEditor;
focal_class.type: DataSetDefBasicAttributesEditor
focal_class.var_name: basicAttributesEditor
focal_class.declarator: dataSetDefBasicAttributesDriver
focal_class.original_string: DataSetDefBasicAttributesDriver dataSetDefBasicAttributesDriver;
focal_class.type: DataSetDefBasicAttributesDriver
focal_class.var_name: dataSetDefBasicAttributesDriver
focal_class.declarator: driver
focal_class.original_string: SimpleBeanEditorDriver<T, E> driver;
focal_class.type: SimpleBeanEditorDriver<T, E>
focal_class.var_name: driver
focal_class.declarator: editor
focal_class.original_string: E editor;
focal_class.type: E
focal_class.var_name: editor
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/DataSetBasicAttributesWorkflow.java
focal_class.identifier: DataSetBasicAttributesWorkflow
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.DataSetBasicAttributesWorkflow(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  DataSetBasicAttributesWorkflow(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: DataSetBasicAttributesWorkflow
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:  DataSetBasicAttributesWorkflow(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: DataSetBasicAttributesWorkflow.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.getDriverClass()
focal_class.full_signature: protected abstract Class<? extends SimpleBeanEditorDriver<T, E>> getDriverClass()
focal_class.identifier: getDriverClass
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: Class<? extends SimpleBeanEditorDriver<T, E>>
focal_class.signature: Class<? extends SimpleBeanEditorDriver<T, E>> getDriverClass()
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.getEditorClass()
focal_class.full_signature: protected abstract Class<? extends E> getEditorClass()
focal_class.identifier: getEditorClass
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: Class<? extends E>
focal_class.signature: Class<? extends E> getEditorClass()
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.validate()
focal_class.full_signature: protected Iterable<ConstraintViolation<?>> validate()
focal_class.identifier: validate
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Iterable<ConstraintViolation<?>>
focal_class.signature: Iterable<ConstraintViolation<?>> validate()
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.edit(final T def)
focal_class.full_signature: public DataSetBasicAttributesWorkflow edit(final T def)
focal_class.identifier: edit
focal_class.modifiers: public
focal_class.parameters: (final T def)
focal_class.return: DataSetBasicAttributesWorkflow
focal_class.signature: DataSetBasicAttributesWorkflow edit(final T def)
focal_class.class_method_signature: DataSetBasicAttributesWorkflow.basicAttributesEdition()
focal_class.full_signature: public DataSetEditorWorkflow basicAttributesEdition()
focal_class.identifier: basicAttributesEdition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetEditorWorkflow
focal_class.signature: DataSetEditorWorkflow basicAttributesEdition()
focal_class.class_method_signature: DataSetBasicAttributesWorkflow._setDataSetDef(final T def)
focal_class.full_signature:  void _setDataSetDef(final T def)
focal_class.identifier: _setDataSetDef
focal_class.parameters: (final T def)
focal_class.return: void
focal_class.signature: void _setDataSetDef(final T def)
focal_class.superclass: extends DataSetEditorWorkflow<T>
focal_method.body: public DataSetEditorWorkflow basicAttributesEdition() {
          checkDataSetDefNotNull();
  
          dataSetDefBasicAttributesDriver = beanManager.lookupBean(DataSetDefBasicAttributesDriver.class).newInstance();
          dataSetDefBasicAttributesDriver.initialize(basicAttributesEditor);
          dataSetDefBasicAttributesDriver.edit(getDataSetDef());
  
          driver = beanManager.lookupBean( getDriverClass() ).newInstance();
          editor = beanManager.lookupBean( getEditorClass() ).newInstance();
          driver.initialize(editor);
          driver.edit(getDataSetDef());
  
          this.flushCommand = new Command() {
              @Override
              public void execute() {
                  flush(dataSetDefBasicAttributesDriver);
                  flush(driver);
              }
          };
  
          this.stepValidator = new Command() {
              @Override
              public void execute() {
  
                  // Data set definition basic attributes validation.
                  Iterable<ConstraintViolation<?>> basicAttsViolations = validatorProvider.validateBasicAttributes(getDataSetDef());
                  dataSetDefBasicAttributesDriver.setConstraintViolations(basicAttsViolations);
                  addViolations(basicAttsViolations);
  
                  Iterable<ConstraintViolation<?>> violations = validate();
                  driver.setConstraintViolations(violations);
                  addViolations(violations);
              }
          };
  
          // Show the view.
          view.clearView();
          view.add(basicAttributesEditor.asWidget());
          view.add(((IsWidget) editor));
  
          return this;
      }
focal_method.class_method_signature: DataSetBasicAttributesWorkflow.basicAttributesEdition()
focal_method.full_signature: public DataSetEditorWorkflow basicAttributesEdition()
focal_method.identifier: basicAttributesEdition
focal_method.invocations: checkDataSetDefNotNull newInstance lookupBean initialize edit getDataSetDef newInstance lookupBean getDriverClass newInstance lookupBean getEditorClass initialize edit getDataSetDef flush flush validateBasicAttributes getDataSetDef setConstraintViolations addViolations validate setConstraintViolations addViolations clearView add asWidget add
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: DataSetEditorWorkflow
focal_method.signature: DataSetEditorWorkflow basicAttributesEdition()