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: providerTypeEditor
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetDefProviderTypeEditor providerTypeEditor;
test_class.type: DataSetDefProviderTypeEditor
test_class.var_name: providerTypeEditor
test_class.declarator: dataSetDefProviderTypeDriver
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetDefProviderTypeDriver dataSetDefProviderTypeDriver;
test_class.type: DataSetDefProviderTypeDriver
test_class.var_name: dataSetDefProviderTypeDriver
test_class.declarator: simpleBeanEditorDriverSyncBeanDef
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<DataSetDefProviderTypeDriver> simpleBeanEditorDriverSyncBeanDef;
test_class.type: SyncBeanDef<DataSetDefProviderTypeDriver>
test_class.var_name: simpleBeanEditorDriverSyncBeanDef
test_class.declarator: provider
test_class.modifier: @Mock
test_class.original_string: @Mock
      HorizImageListEditor<DataSetProviderType> provider;
test_class.type: HorizImageListEditor<DataSetProviderType>
test_class.var_name: provider
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 DataSetProviderTypeWorkflow presenter;
test_class.type: DataSetProviderTypeWorkflow
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/DataSetProviderTypeWorkflowTest.java
test_class.identifier: DataSetProviderTypeWorkflowTest
test_class.superclass: extends AbstractDataSetWorkflowTest
test_case.body: @Test
      public void testProviderTypeEdition() {
          DataSetDef def = mock( DataSetDef.class );
          presenter.edit( def ).providerTypeEdition();
          verify( beanManager, times( 1 ) ).lookupBean( DataSetDefProviderTypeDriver.class );
          verify( dataSetDefProviderTypeDriver, times( 1 ) ).initialize( providerTypeEditor );
          verify( dataSetDefProviderTypeDriver, times( 1 ) ).edit( any( DataSetDef.class ) );
          verify( view, times( 2 ) ).clearView();
          verify( view, times( 1 ) ).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: DataSetProviderTypeWorkflowTest.testProviderTypeEdition()
test_case.full_signature: @Test public void testProviderTypeEdition()
test_case.identifier: testProviderTypeEdition
test_case.invocations: mock providerTypeEdition edit lookupBean verify times initialize verify times edit verify times any 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 testProviderTypeEdition()
focal_class.declarator: providerTypeEditor
focal_class.original_string: DataSetDefProviderTypeEditor providerTypeEditor;
focal_class.type: DataSetDefProviderTypeEditor
focal_class.var_name: providerTypeEditor
focal_class.declarator: dataSetDefProviderTypeDriver
focal_class.original_string: DataSetDefProviderTypeDriver dataSetDefProviderTypeDriver;
focal_class.type: DataSetDefProviderTypeDriver
focal_class.var_name: dataSetDefProviderTypeDriver
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/create/DataSetProviderTypeWorkflow.java
focal_class.identifier: DataSetProviderTypeWorkflow
focal_class.class_method_signature: DataSetProviderTypeWorkflow.DataSetProviderTypeWorkflow(final DataSetClientServices clientServices,
                                         final DataSetValidatorProvider validatorProvider,
                                         final SyncBeanManager beanManager,
                                         final DataSetDefProviderTypeEditor providerTypeEditor,
                                         final Event<SaveRequestEvent> saveRequestEvent,
                                         final Event<CancelRequestEvent> cancelRequestEvent,
                                         final Event<TestDataSetRequestEvent> testDataSetEvent,
                                         final View view)
focal_class.full_signature: @Inject public  DataSetProviderTypeWorkflow(final DataSetClientServices clientServices,
                                         final DataSetValidatorProvider validatorProvider,
                                         final SyncBeanManager beanManager,
                                         final DataSetDefProviderTypeEditor providerTypeEditor,
                                         final Event<SaveRequestEvent> saveRequestEvent,
                                         final Event<CancelRequestEvent> cancelRequestEvent,
                                         final Event<TestDataSetRequestEvent> testDataSetEvent,
                                         final View view)
focal_class.identifier: DataSetProviderTypeWorkflow
focal_class.modifiers: @Inject public
focal_class.parameters: (final DataSetClientServices clientServices,
                                         final DataSetValidatorProvider validatorProvider,
                                         final SyncBeanManager beanManager,
                                         final DataSetDefProviderTypeEditor providerTypeEditor,
                                         final Event<SaveRequestEvent> saveRequestEvent,
                                         final Event<CancelRequestEvent> cancelRequestEvent,
                                         final Event<TestDataSetRequestEvent> testDataSetEvent,
                                         final View view)
focal_class.signature:  DataSetProviderTypeWorkflow(final DataSetClientServices clientServices,
                                         final DataSetValidatorProvider validatorProvider,
                                         final SyncBeanManager beanManager,
                                         final DataSetDefProviderTypeEditor providerTypeEditor,
                                         final Event<SaveRequestEvent> saveRequestEvent,
                                         final Event<CancelRequestEvent> cancelRequestEvent,
                                         final Event<TestDataSetRequestEvent> testDataSetEvent,
                                         final View view)
focal_class.class_method_signature: DataSetProviderTypeWorkflow.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: DataSetProviderTypeWorkflow.edit(final DataSetDef def)
focal_class.full_signature: public DataSetProviderTypeWorkflow edit(final DataSetDef def)
focal_class.identifier: edit
focal_class.modifiers: public
focal_class.parameters: (final DataSetDef def)
focal_class.return: DataSetProviderTypeWorkflow
focal_class.signature: DataSetProviderTypeWorkflow edit(final DataSetDef def)
focal_class.class_method_signature: DataSetProviderTypeWorkflow.getProviderType()
focal_class.full_signature: public DataSetProviderType getProviderType()
focal_class.identifier: getProviderType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetProviderType
focal_class.signature: DataSetProviderType getProviderType()
focal_class.class_method_signature: DataSetProviderTypeWorkflow.providerTypeEdition()
focal_class.full_signature: public DataSetProviderTypeWorkflow providerTypeEdition()
focal_class.identifier: providerTypeEdition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetProviderTypeWorkflow
focal_class.signature: DataSetProviderTypeWorkflow providerTypeEdition()
focal_class.class_method_signature: DataSetProviderTypeWorkflow.onProviderTypeSelected(@Observes DataSetDefCreationRequestEvent event)
focal_class.full_signature:  void onProviderTypeSelected(@Observes DataSetDefCreationRequestEvent event)
focal_class.identifier: onProviderTypeSelected
focal_class.parameters: (@Observes DataSetDefCreationRequestEvent event)
focal_class.return: void
focal_class.signature: void onProviderTypeSelected(@Observes DataSetDefCreationRequestEvent event)
focal_class.superclass: extends DataSetEditorWorkflow<DataSetDef>
focal_method.body: public DataSetProviderTypeWorkflow providerTypeEdition() {
          checkDataSetDefNotNull();
  
          // Provider type editor driver edition.
          dataSetDefProviderTypeDriver = beanManager.lookupBean(DataSetDefProviderTypeDriver.class).newInstance();
          dataSetDefProviderTypeDriver.initialize(providerTypeEditor);
          dataSetDefProviderTypeDriver.edit(getDataSetDef());
  
          this.flushCommand = () -> {
              flush(dataSetDefProviderTypeDriver);
          };
  
          this.stepValidator = () -> {
              Iterable<ConstraintViolation<?>> violations = validatorProvider.validateProviderType(getDataSetDef());
              dataSetDefProviderTypeDriver.setConstraintViolations(violations);
              addViolations(violations);
          };
  
          // Show provider type editor view.
          view.clearView();
          view.add(providerTypeEditor.asWidget());
  
          return this;
      }
focal_method.class_method_signature: DataSetProviderTypeWorkflow.providerTypeEdition()
focal_method.full_signature: public DataSetProviderTypeWorkflow providerTypeEdition()
focal_method.identifier: providerTypeEdition
focal_method.invocations: checkDataSetDefNotNull newInstance lookupBean initialize edit getDataSetDef flush validateProviderType getDataSetDef setConstraintViolations addViolations clearView add asWidget
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: DataSetProviderTypeWorkflow
focal_method.signature: DataSetProviderTypeWorkflow providerTypeEdition()