@Override @After protected void tearDown() throws Exception { File destinationFolder = getDestinationFolder(); if (destinationFolder.exists()) { FileUtil.delete(destinationFolder); } }
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); }