protected static void assureResultsDirectoryExists(String resultsDirectory){
  File dir=new File(resultsDirectory);
  if (!dir.exists()) {
    RuntimeSingleton.info("Template results directory does not exist");
    if (dir.mkdirs()) {
      RuntimeSingleton.info("Created template results directory");
    }
 else {
      String errMsg="Unable to create template results directory";
      RuntimeSingleton.warn(errMsg);
      fail(errMsg);
    }
  }
}

protected static void assureResultsDirectoryExists ( String resultsDirectory ) { File dir = new File ( resultsDirectory ) ; if ( ! dir . exists ( ) ) { RuntimeSingleton . info ( "Template results directory does not exist" ) ; if ( dir . mkdirs ( ) ) { RuntimeSingleton . info ( "Created template results directory" ) ; } else { String errMsg = "Unable to create template results directory" ; RuntimeSingleton . warn ( errMsg ) ; fail ( errMsg ) ; } } }
assures that the results directory exists . if the results directory cannot be created , fails the test .
