test_class.declarator: onActionsGenerator = new MetadataChangesOnActionsGenerator()
test_class.modifier: private
test_class.original_string: private MetadataChangesOnActionsGenerator onActionsGenerator = new MetadataChangesOnActionsGenerator();
test_class.type: MetadataChangesOnActionsGenerator
test_class.var_name: onActionsGenerator
test_class.declarator: firstAction
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RunnableAction firstAction;
test_class.type: RunnableAction
test_class.var_name: firstAction
test_class.declarator: firstRowAction
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSetRowAction firstRowAction;
test_class.type: DataSetRowAction
test_class.var_name: firstRowAction
test_class.declarator: firstActionStuffInActionContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DisposableBean firstActionStuffInActionContext;
test_class.type: DisposableBean
test_class.var_name: firstActionStuffInActionContext
test_class.declarator: secondAction
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RunnableAction secondAction;
test_class.type: RunnableAction
test_class.var_name: secondAction
test_class.declarator: secondRowAction
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSetRowAction secondRowAction;
test_class.type: DataSetRowAction
test_class.var_name: secondRowAction
test_class.declarator: secondActionStuffInActionContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DisposableBean secondActionStuffInActionContext;
test_class.type: DisposableBean
test_class.var_name: secondActionStuffInActionContext
test_class.file: dataprep-preparation/src/test/java/org/talend/dataprep/preparation/service/MetadataChangesOnActionsGeneratorTest.java
test_class.identifier: MetadataChangesOnActionsGeneratorTest
test_case.body: @Test
      public void getActionCreatedColumns_should_cleanup_transformation_context() throws Exception {
  
          // given
          RowMetadata workingMetadata = new RowMetadata();
          workingMetadata.addColumn(createColumnNamed("do"));
  
          // when
          doAnswer(answer(emptyList(), emptyList(), firstActionStuffInActionContext)) //
                  .when(firstRowAction) //
                  .compile(any(ActionContext.class) //
          );
          doAnswer(answer(emptyList(), emptyList(), secondActionStuffInActionContext)) //
                  .when(secondRowAction) //
                  .compile(any(ActionContext.class) //
          );
  
          onActionsGenerator.computeCreatedColumns(newArrayList(firstAction, secondAction), workingMetadata);
  
          // then
          verify(firstActionStuffInActionContext).destroy();
          verify(secondActionStuffInActionContext).destroy();
      }
test_case.class_method_signature: MetadataChangesOnActionsGeneratorTest.getActionCreatedColumns_should_cleanup_transformation_context()
test_case.full_signature: @Test public void getActionCreatedColumns_should_cleanup_transformation_context()
test_case.identifier: getActionCreatedColumns_should_cleanup_transformation_context
test_case.invocations: addColumn createColumnNamed compile when doAnswer answer emptyList emptyList any compile when doAnswer answer emptyList emptyList any computeCreatedColumns newArrayList destroy verify destroy verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getActionCreatedColumns_should_cleanup_transformation_context()
focal_class.file: dataprep-preparation/src/main/java/org/talend/dataprep/preparation/service/MetadataChangesOnActionsGenerator.java
focal_class.identifier: MetadataChangesOnActionsGenerator
focal_class.class_method_signature: MetadataChangesOnActionsGenerator.computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_class.full_signature: public StepDiff computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_class.identifier: computeCreatedColumns
focal_class.modifiers: public
focal_class.parameters: (final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_class.return: StepDiff
focal_class.signature: StepDiff computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_class.class_method_signature: MetadataChangesOnActionsGenerator.computeCreatedColumns(List<RunnableAction> newActions, RowMetadata reference)
focal_class.full_signature:  StepDiff computeCreatedColumns(List<RunnableAction> newActions, RowMetadata reference)
focal_class.identifier: computeCreatedColumns
focal_class.parameters: (List<RunnableAction> newActions, RowMetadata reference)
focal_class.return: StepDiff
focal_class.signature: StepDiff computeCreatedColumns(List<RunnableAction> newActions, RowMetadata reference)
focal_class.class_method_signature: MetadataChangesOnActionsGenerator.compileActionsOnMetadata(List<RunnableAction> actions, final RowMetadata startingRowMetadata)
focal_class.full_signature: private RowMetadata compileActionsOnMetadata(List<RunnableAction> actions, final RowMetadata startingRowMetadata)
focal_class.identifier: compileActionsOnMetadata
focal_class.modifiers: private
focal_class.parameters: (List<RunnableAction> actions, final RowMetadata startingRowMetadata)
focal_class.return: RowMetadata
focal_class.signature: RowMetadata compileActionsOnMetadata(List<RunnableAction> actions, final RowMetadata startingRowMetadata)
focal_method.body: public StepDiff computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions) {
          RowMetadata workingMetadata = compileActionsOnMetadata(currentActions, metadata);
          return computeCreatedColumns(newActions, workingMetadata);
      }
focal_method.class_method_signature: MetadataChangesOnActionsGenerator.computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_method.full_signature: public StepDiff computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_method.identifier: computeCreatedColumns
focal_method.invocations: compileActionsOnMetadata computeCreatedColumns
focal_method.modifiers: public
focal_method.parameters: (final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)
focal_method.return: StepDiff
focal_method.signature: StepDiff computeCreatedColumns(final RowMetadata metadata, List<RunnableAction> currentActions,
              List<RunnableAction> newActions)