示例#1
0
 @Override
 @After
 protected void tearDown() throws Exception {
   File destinationFolder = getDestinationFolder();
   if (destinationFolder.exists()) {
     FileUtil.delete(destinationFolder);
   }
 }
示例#2
0
 private void copyData(String destPath, String srcPath) throws Exception {
   File sourceFolder = TestUtil.getPluginRelativeFolder(srcPath);
   File destFolder =
       new File(myProject.getProject().getLocation().toString() + "/" + destPath); // $NON-NLS-1$
   destFolder.mkdirs();
   FileUtil.copyFolder(sourceFolder, destFolder);
   myProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
 }