public void writeFiles() { new File(".", directory + File.separator + "a" + File.separator + "b" + File.separator + "c") .mkdirs(); FileUtility.write( new File(directory + File.separator + filenamePrefix + testPageFileName), generateTestPageContents()); FileUtility.write( new File( directory + File.separator + "a" + File.separator + "b", filenamePrefix + "file1.js"), REFERENCED_JS_FILE_1_CONTENTS); FileUtility.write( new File( directory + File.separator + "a" + File.separator + "b" + File.separator + "c", filenamePrefix + "file2.js"), REFERENCED_JS_FILE_2_CONTENTS); }
public void store(BrowserResult result) { String xml = XmlUtility.asString(result.asXml()); FileUtility.write(logFileForId(result.getId(), result.getBrowser()), xml); }
public void removeFiles() { FileUtility.deleteDirectoryAndContents(directory); }