test_class.declarator: task
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ChangeUserIdToTargetId task;
test_class.type: ChangeUserIdToTargetId
test_class.var_name: task
test_class.declarator: storeLocation
test_class.modifier: @Value("${upgrade.store.file.location}")
      private
test_class.original_string: @Value("${upgrade.store.file.location}")
      private String storeLocation;
test_class.type: String
test_class.var_name: storeLocation
test_class.file: dataprep-upgrade/src/test/java/org/talend/dataprep/upgrade/to_1_3_0_PE/ChangeUserIdToTargetIdTest.java
test_class.identifier: ChangeUserIdToTargetIdTest
test_class.superclass: extends Base_1_3_0_PE_Test
test_case.body: @Test
      public void shouldRenameUpgradeUserFolders() throws Exception {
          // given
          List<String> expected =
                  Arrays.asList("USER-chuck norris", "USER-mr anonymous", "USER-william from arcachon", "VERSION-1.3.0");
  
          // when
          task.run();
  
          // then
          Path rootFolder = Paths.get(storeLocation);
          List<String> actual = Arrays.asList(rootFolder.toFile().list());
          assertTrue(actual.containsAll(expected) && expected.containsAll(actual));
  
      }
test_case.class_method_signature: ChangeUserIdToTargetIdTest.shouldRenameUpgradeUserFolders()
test_case.full_signature: @Test public void shouldRenameUpgradeUserFolders()
test_case.identifier: shouldRenameUpgradeUserFolders
test_case.invocations: asList run get asList list toFile assertTrue containsAll containsAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldRenameUpgradeUserFolders()
focal_class.declarator: LOG = getLogger(ChangeUserIdToTargetId.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = getLogger(ChangeUserIdToTargetId.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: storeLocation
focal_class.modifier: @Value("${upgrade.store.file.location}")
      private
focal_class.original_string: @Value("${upgrade.store.file.location}")
      private String storeLocation;
focal_class.type: String
focal_class.var_name: storeLocation
focal_class.file: dataprep-upgrade/src/main/java/org/talend/dataprep/upgrade/to_1_3_0_PE/ChangeUserIdToTargetId.java
focal_class.identifier: ChangeUserIdToTargetId
focal_class.interfaces: implements BaseUpgradeTaskTo_1_3_0_PE
focal_class.class_method_signature: ChangeUserIdToTargetId.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: ChangeUserIdToTargetId.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.class_method_signature: ChangeUserIdToTargetId.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_method.body: @Override
      public void run() {
  
          Path rootFolder = Paths.get(storeLocation);
          try {
              Files.walkFileTree(rootFolder, emptySet(), 1, new RenameUserToTarget());
          } catch (IOException e) {
              throw new TDPException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);
          }
  
      }
focal_method.class_method_signature: ChangeUserIdToTargetId.run()
focal_method.full_signature: @Override public void run()
focal_method.identifier: run
focal_method.invocations: get walkFileTree emptySet
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void run()