public class FileTestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static File |
createDataFile(File folder,
String testMessage)
Creates a data file that will be deleted when the JVM finalizes using
the default encoding
|
static File |
createDataFile(File folder,
String testMessage,
String encoding)
Creates a data file that will be deleted when the JVM finalizes
|
static File |
createFolder(File parent,
String name)
Creates a folder that will be deleted when the JVM finalizes
|
static File |
createFolder(String name)
Creates a folder that will be deleted when the JVM finalizes
|
public static File createDataFile(File folder, String testMessage) throws Exception
folder
- folder where the file will be createdtestMessage
- content of the fileException
public static File createDataFile(File folder, String testMessage, String encoding) throws Exception
folder
- folder where the file will be createdtestMessage
- content of the fileencoding
- encoding used to store the dataException
public static File createFolder(String name)
name
- name of the fileCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.