public class TemporaryFolder extends Object
rootFolder within which any files or directories will be created along
with the operations which a tester may wish to invoke (createFile(String), createDirectory(String)) and post test invocations which the associated extension will invoke.| Modifier and Type | Method and Description |
|---|---|
File |
createDirectory(String directoryName)
Create a directory within the temporary folder root.
|
File |
createFile(String fileName)
Create a file within the temporary folder root.
|
public File createFile(String fileName) throws IOException
fileName - the name of the file to be createdIOException - in case the file creation call failsCopyright © 2018. All rights reserved.