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.declarator: dataSetMetadataRepository
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private DataSetMetadataRepository dataSetMetadataRepository;
test_class.type: DataSetMetadataRepository
test_class.var_name: dataSetMetadataRepository
test_class.declarator: task
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private AddSchemaInPreparations task;
test_class.type: AddSchemaInPreparations
test_class.var_name: task
test_class.declarator: fileSystemPreparationRepository
test_class.modifier: private
test_class.original_string: private FileSystemPreparationRepository fileSystemPreparationRepository;
test_class.type: FileSystemPreparationRepository
test_class.var_name: fileSystemPreparationRepository
test_class.file: dataprep-upgrade/src/test/java/org/talend/dataprep/upgrade/to_2_1_0_PE/AddSchemaInPreparationsTest.java
test_class.identifier: AddSchemaInPreparationsTest
test_class.superclass: extends Base_2_1_0_PE_Test
test_case.body: @Test
      public void integrationTest() throws Exception {
          // given
          assertTrue(fileSystemPreparationRepository.list(Preparation.class).allMatch(p -> p.getRowMetadata() == null));
  
          // when
          task.run();
  
          // then
          assertTrue(fileSystemPreparationRepository.list(Preparation.class).allMatch(p -> p.getRowMetadata() != null));
      }
test_case.class_method_signature: AddSchemaInPreparationsTest.integrationTest()
test_case.full_signature: @Test public void integrationTest()
test_case.identifier: integrationTest
test_case.invocations: assertTrue allMatch list getRowMetadata run assertTrue allMatch list getRowMetadata
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void integrationTest()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(AddSchemaInPreparations.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(AddSchemaInPreparations.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: preparationDatasetRowUpdater
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PreparationDatasetRowUpdater preparationDatasetRowUpdater;
focal_class.type: PreparationDatasetRowUpdater
focal_class.var_name: preparationDatasetRowUpdater
focal_class.declarator: preparationRepository
focal_class.modifier: @Autowired
focal_class.original_string: @Autowired
      PreparationRepository preparationRepository;
focal_class.type: PreparationRepository
focal_class.var_name: preparationRepository
focal_class.declarator: fileSystemPreparationRepository
focal_class.modifier: private
focal_class.original_string: private FileSystemPreparationRepository fileSystemPreparationRepository;
focal_class.type: FileSystemPreparationRepository
focal_class.var_name: fileSystemPreparationRepository
focal_class.file: dataprep-upgrade/src/main/java/org/talend/dataprep/upgrade/to_2_1_0_PE/AddSchemaInPreparations.java
focal_class.identifier: AddSchemaInPreparations
focal_class.interfaces: implements BaseUpgradeTaskTo_2_1_0_PE
focal_class.class_method_signature: AddSchemaInPreparations.postInitialize()
focal_class.full_signature: @PostConstruct private void postInitialize()
focal_class.identifier: postInitialize
focal_class.modifiers: @PostConstruct private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void postInitialize()
focal_class.class_method_signature: AddSchemaInPreparations.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: AddSchemaInPreparations.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: AddSchemaInPreparations.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_method.body: @Override
      public void run() {
          LOGGER.info("Starting to add row metadata to preparations.");
          preparationDatasetRowUpdater.updatePreparations(fileSystemPreparationRepository);
          LOGGER.info("Row metadata added to preparations.");
      }
focal_method.class_method_signature: AddSchemaInPreparations.run()
focal_method.full_signature: @Override public void run()
focal_method.identifier: run
focal_method.invocations: info updatePreparations info
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void run()