Class WorkDir
java.lang.Object
org.eclipse.jetty.toolchain.test.jupiter.WorkDir
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsure that the work directory is empty.Get the unique work directory while ensuring that it is empty (if not).getPath()Get the test specific directory to use for work directory.getPathFile(String name) Get aPathfile reference for content inside of the test specific work directory.
-
Field Details
-
path
-
-
Constructor Details
-
WorkDir
-
-
Method Details
-
getPath
Get the test specific directory to use for work directory.Name is derived from the test classname & method name.
- Returns:
- the test specific directory.
-
getPathFile
Get aPathfile reference for content inside of the test specific work directory.Note: No assertions are made if the file exists or not.
- Parameters:
name- the path name of the file (supports deep paths)- Returns:
- the file reference.
-
ensureEmpty
public void ensureEmpty()Ensure that the work directory is empty.Useful for repeated testing without using the maven
cleangoal (such as within Eclipse). -
getEmptyPathDir
Get the unique work directory while ensuring that it is empty (if not).- Returns:
- the unique work directory, created, and empty.
-