@Before public void initializeTestDirectories(){
  logger.debug("Initialize test directories");
  String testId=testIdWatcher.getTestId();
  File baseDir=getBaseDir();
  File resourcesDir=new File(baseDir,TEST_RESOURCES_DIR);
  sourceTestDir=new File(resourcesDir,testId);
  targetTestDir=new File(baseDir,TEST_RESOURCES_TARGET_DIR + testId);
  logger.debug("Delete test target directory to remove data from previous run");
  try {
    FileUtils.deleteDirectory(targetTestDir);
  }
 catch (  IOException e) {
    throw new RuntimeException("Problem deleting directory: " + targetTestDir.getAbsolutePath(),e);
  }
  targetTestDir.mkdirs();
}

@ Before public void initializeTestDirectories ( ) { logger . debug ( "Initialize test directories" ) ; String testId = testIdWatcher . getTestId ( ) ; File baseDir = getBaseDir ( ) ; File resourcesDir = new File ( baseDir , TEST_RESOURCES_DIR ) ; sourceTestDir = new File ( resourcesDir , testId ) ; targetTestDir = new File ( baseDir , TEST_RESOURCES_TARGET_DIR + testId ) ; logger . debug ( "Delete test target directory to remove data from previous run" ) ; try { FileUtils . deleteDirectory ( targetTestDir ) ; } catch ( IOException e ) { throw new RuntimeException ( "Problem deleting directory: " + targetTestDir . getAbsolutePath ( ) , e ) ; } targetTestDir . mkdirs ( ) ; }
creates the test directories to easily compare input / output files with expected files .
