in src/main/java/org/apache/sling/launchpad/webapp/integrationtest/UploadFileTest.java [221:229]
private File getTestFile() throws IOException {
File tempFile = new File("target/file-to-upload.txt");
if (!tempFile.exists() || tempFile.length() == 0) {
FileWriter out = new FileWriter(tempFile);
out.write(UPLOAD_CONTENT); // we do rather than from a resource since surefire has fun with classloaders.
out.close();
}
return tempFile;
}