Package org.approvej.approve
Class NextToTestPathProvider
java.lang.Object
org.approvej.approve.NextToTestPathProvider
- All Implemented Interfaces:
PathProvider
A
PathProvider that uses a stack trace to determine the paths of the approved and
received files.-
Field Summary
Fields inherited from interface org.approvej.approve.PathProvider
APPROVED, DEFAULT_FILENAME_EXTENSION, RECEIVED -
Method Summary
Modifier and TypeMethodDescriptionThe path of the file containing a previously approved value.The path of the directory containing the approved and received files.filenameExtension(String filenameExtension) Use the given filenameExtension for the approved and received files.Use a subdirectory named after the test class name.The path of the file containing the latest received value that didn't match the previously approved.
-
Method Details
-
inSubdirectory
Use a subdirectory named after the test class name.- Returns:
- this
-
filenameExtension
Use the given filenameExtension for the approved and received files.- Parameters:
filenameExtension- the filename extension to use- Returns:
- this
-
directory
Description copied from interface:PathProviderThe path of the directory containing the approved and received files.- Specified by:
directoryin interfacePathProvider- Returns:
- the
Pathto the directory
-
receivedPath
Description copied from interface:PathProviderThe path of the file containing the latest received value that didn't match the previously approved.- Specified by:
receivedPathin interfacePathProvider- Returns:
- the
Pathto the received file
-
approvedPath
Description copied from interface:PathProviderThe path of the file containing a previously approved value.- Specified by:
approvedPathin interfacePathProvider- Returns:
- the
Pathto the approved file
-