org.apache.maven.shared.utils.testhelpers
Class FileTestHelper
java.lang.Object
org.apache.maven.shared.utils.testhelpers.FileTestHelper
public final class FileTestHelper
- extends Object
A few utility methods for file based tests
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generateTestData
public static void generateTestData(OutputStream out,
long size)
throws IOException
- Throws:
IOException
generateTestFile
public static void generateTestFile(File testfile,
int size)
throws IOException
- Throws:
IOException
createLineBasedFile
public static void createLineBasedFile(File file,
String[] data)
throws IOException
- Throws:
IOException
newFile
public static File newFile(TemporaryFolder folder,
String filename)
throws IOException
- Check if the given file exists in the given folder and remove it.
- Returns:
- the File object for a new file
- Throws:
IOException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.