Package org.approvej.approve
Class PathProviders
java.lang.Object
org.approvej.approve.PathProviders
Collection of static methods to create
PathProvider instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic PathProviderapprovedPath(String approvedPathString) Creates a newPathProviderthat uses the given approved path}.static PathProviderapprovedPath(Path approvedPath) Creates a newPathProviderthat uses the given approvedPath.static PathProviderCreates aPathProviderthat uses a stack trace to determine the paths of the approved and received files.static PathProviderCreates aPathProviderthat uses a stack trace to determine the paths of the approved and received files in a subdirectory named after the currect test class simple name.
-
Method Details
-
approvedPath
Creates a newPathProviderthat uses the given approvedPath.- Parameters:
approvedPath- thePathto the approved file- Returns:
- a new
PathProvider
-
approvedPath
Creates a newPathProviderthat uses the given approved path}.- Parameters:
approvedPathString- the path to the approved file- Returns:
- a new
PathProvider
-
nextToTest
Creates aPathProviderthat uses a stack trace to determine the paths of the approved and received files.- Returns:
- a new
PathProvider
-
nextToTestInSubdirectory
Creates aPathProviderthat uses a stack trace to determine the paths of the approved and received files in a subdirectory named after the currect test class simple name.- Returns:
- a new
PathProvider
-