コード例 #1
0
 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);
 }
コード例 #2
0
 public void store(BrowserResult result) {
   String xml = XmlUtility.asString(result.asXml());
   FileUtility.write(logFileForId(result.getId(), result.getBrowser()), xml);
 }
コード例 #3
0
 public void removeFiles() {
   FileUtility.deleteDirectoryAndContents(directory);
 }