test_class.declarator: task
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MigrateActionsParameters task;
test_class.type: MigrateActionsParameters
test_class.var_name: task
test_class.declarator: preparationRepository
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private PreparationRepository preparationRepository;
test_class.type: PreparationRepository
test_class.var_name: preparationRepository
test_class.file: dataprep-upgrade/src/test/java/org/talend/dataprep/upgrade/to_2_3_0_PE/MigrateActionsParametersTest.java
test_class.identifier: MigrateActionsParametersTest
test_class.superclass: extends Base_2_3_0_PE_Test
test_case.body: @Test
      public void shouldAddCreateNewColumnParameter() {
          // given a datastore built with one preparation with 3 steps
          // when
          task.run();
  
          // then
          Optional<Action> numericOpsAction = preparationRepository //
                  .list(PreparationActions.class) //
                  .filter(pa -> pa.getId().equals("cde7e7f945afe3e7e39cb26b00705c7464ba6d3a"))
                  .flatMap(a -> a.getActions().stream()) //
                  .filter(a -> "numeric_ops".equals(a.getName()))
                  .findFirst();
  
          assertTrue(numericOpsAction.isPresent());
          assertEquals(TRUE.toString(), numericOpsAction.get().getParameters().get(CREATE_NEW_COLUMN));
  
      }
test_case.class_method_signature: MigrateActionsParametersTest.shouldAddCreateNewColumnParameter()
test_case.full_signature: @Test public void shouldAddCreateNewColumnParameter()
test_case.identifier: shouldAddCreateNewColumnParameter
test_case.invocations: run findFirst filter flatMap filter list equals getId stream getActions equals getName assertTrue isPresent assertEquals toString get getParameters get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldAddCreateNewColumnParameter()
focal_class.declarator: preparationRepository
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PreparationRepository preparationRepository;
focal_class.type: PreparationRepository
focal_class.var_name: preparationRepository
focal_class.file: dataprep-upgrade/src/main/java/org/talend/dataprep/upgrade/to_2_3_0_PE/MigrateActionsParameters.java
focal_class.identifier: MigrateActionsParameters
focal_class.class_method_signature: MigrateActionsParameters.run()
focal_class.full_signature: @Override public void run()
focal_class.identifier: run
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void run()
focal_class.class_method_signature: MigrateActionsParameters.getOrder()
focal_class.full_signature: @Override public int getOrder()
focal_class.identifier: getOrder
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOrder()
focal_class.class_method_signature: MigrateActionsParameters.getTarget()
focal_class.full_signature: @Override public target getTarget()
focal_class.identifier: getTarget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: target
focal_class.signature: target getTarget()
focal_class.superclass: extends BaseUpgradeTaskTo_2_3_0_PE
focal_method.body: @Override
      public void run() {
          ActionNewColumnToggleCommon.upgradeActions(preparationRepository);
      }
focal_method.class_method_signature: MigrateActionsParameters.run()
focal_method.full_signature: @Override public void run()
focal_method.identifier: run
focal_method.invocations: upgradeActions
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void run()