test_class.declarator: task
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MoveDatasetContent task;
test_class.type: MoveDatasetContent
test_class.var_name: task
test_class.file: dataprep-upgrade/src/test/java/org/talend/dataprep/upgrade/to_2_1_0_PE/MoveDatasetContentTest.java
test_class.identifier: MoveDatasetContentTest
test_class.superclass: extends Base_2_1_0_PE_Test
test_case.body: @Test
      public void testNeedToApplyUpgrade() {
          // given
          Assert.assertTrue(new File(task.oldRoot).exists());
          Assert.assertFalse(new File(task.newRoot).exists());
  
          // when
  
          // then
          Assert.assertTrue(task.haveToBeApply());
  
      }
test_case.class_method_signature: MoveDatasetContentTest.testNeedToApplyUpgrade()
test_case.full_signature: @Test public void testNeedToApplyUpgrade()
test_case.identifier: testNeedToApplyUpgrade
test_case.invocations: assertTrue exists assertFalse exists assertTrue haveToBeApply
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNeedToApplyUpgrade()
focal_class.declarator: LOGGER = getLogger(MoveDatasetContent.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = getLogger(MoveDatasetContent.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: oldRoot
focal_class.modifier: protected
focal_class.original_string: protected String oldRoot;
focal_class.type: String
focal_class.var_name: oldRoot
focal_class.declarator: tmp
focal_class.modifier: private
focal_class.original_string: private String tmp;
focal_class.type: String
focal_class.var_name: tmp
focal_class.declarator: newRoot
focal_class.modifier: protected
focal_class.original_string: protected String newRoot;
focal_class.type: String
focal_class.var_name: newRoot
focal_class.file: dataprep-upgrade/src/main/java/org/talend/dataprep/upgrade/to_2_1_0_PE/MoveDatasetContent.java
focal_class.identifier: MoveDatasetContent
focal_class.interfaces: implements BaseUpgradeTaskTo_2_1_0_PE
focal_class.class_method_signature: MoveDatasetContent.setOldRoot(String basePath)
focal_class.full_signature: @Value("${content-service.store.local.path}") public void setOldRoot(String basePath)
focal_class.identifier: setOldRoot
focal_class.modifiers: @Value("${content-service.store.local.path}") public
focal_class.parameters: (String basePath)
focal_class.return: void
focal_class.signature: void setOldRoot(String basePath)
focal_class.class_method_signature: MoveDatasetContent.setTmp(String basePath)
focal_class.full_signature: @Value("${content-service.store.local.path}") public void setTmp(String basePath)
focal_class.identifier: setTmp
focal_class.modifiers: @Value("${content-service.store.local.path}") public
focal_class.parameters: (String basePath)
focal_class.return: void
focal_class.signature: void setTmp(String basePath)
focal_class.class_method_signature: MoveDatasetContent.setNewRoot(String basePath)
focal_class.full_signature: @Value("${content-service.store.local.path}") public void setNewRoot(String basePath)
focal_class.identifier: setNewRoot
focal_class.modifiers: @Value("${content-service.store.local.path}") public
focal_class.parameters: (String basePath)
focal_class.return: void
focal_class.signature: void setNewRoot(String basePath)
focal_class.class_method_signature: MoveDatasetContent.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: MoveDatasetContent.haveToBeApply()
focal_class.full_signature: public boolean haveToBeApply()
focal_class.identifier: haveToBeApply
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean haveToBeApply()
focal_class.class_method_signature: MoveDatasetContent.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: MoveDatasetContent.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: public boolean haveToBeApply() {
          File newRootFolder = new File(newRoot);
          return !newRootFolder.exists();
      }
focal_method.class_method_signature: MoveDatasetContent.haveToBeApply()
focal_method.full_signature: public boolean haveToBeApply()
focal_method.identifier: haveToBeApply
focal_method.invocations: exists
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean haveToBeApply()