public final class FileTestHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createLineBasedFile(File file,
String[] data) |
static void |
generateTestData(OutputStream out,
long size) |
static void |
generateTestFile(File testfile,
int size) |
static File |
newFile(org.junit.rules.TemporaryFolder folder,
String filename)
Check if the given file exists in the given folder and remove it.
|
public static void generateTestData(OutputStream out, long size) throws IOException
IOException
public static void generateTestFile(File testfile, int size) throws IOException
IOException
public static void createLineBasedFile(File file, String[] data) throws IOException
IOException
public static File newFile(org.junit.rules.TemporaryFolder folder, String filename) throws IOException
IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.