Package io.helidon.webserver.testsupport
Class TemporaryFolder
java.lang.Object
io.helidon.webserver.testsupport.TemporaryFolder
A helper class that represents a temporary folder.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TemporaryFolder
public TemporaryFolder()
-
-
Method Details
-
newFile
Create a new regular file inside the root folder.- Parameters:
name- the name of the file to create- Returns:
- the created
Fileinstance - Throws:
IOException- if an error occurred while create the fileIllegalStateException- if the file already exist
-
newFolder
Create a new directory inside the root folder.- Parameters:
name- the name of the directory to create- Returns:
- the created
Fileinstance
-
root
Return the root of the temporary folder.- Returns:
- the
Fileinstance for the temporary folder root
-