Package org.approvej.verify
Class Verifiers
java.lang.Object
org.approvej.verify.Verifiers
Collection of static methods to create
Verifier instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic FileVerifierinFile()Creates a newVerifierthat uses the stack trace to determine the paths of approved and received files.static FileVerifierstatic FileVerifierstatic FileVerifierinFile(PathProvider pathProvider) Creates a newVerifierthat uses the givenPathProviderto determine the paths of approved and received files.static FileVerifierinFile(PathProviderBuilder pathProviderBuilder) Builds the givenPathProviderBuilderand uses it to create a newFileVerifier.static InplaceVerifierCreates aVerifierusing the given previouslyApproved value.
-
Method Details
-
inplace
Creates aVerifierusing the given previouslyApproved value.- Parameters:
previouslyApproved- the approved value- Returns:
- a new
InplaceVerifierfor the given previouslyApproved value.
-
inFile
Creates a newVerifierthat uses the givenPathProviderto determine the paths of approved and received files.- Parameters:
pathProvider- the provider for the paths of the approved and received files- Returns:
- a new
FileVerifierthat uses the givenPathProvider
-
inFile
Builds the givenPathProviderBuilderand uses it to create a newFileVerifier.- Parameters:
pathProviderBuilder- thePathProviderBuilder- Returns:
- a new
FileVerifierthat uses the givenPathProvider - See Also:
-
inFile
Creates a newVerifierthat uses the stack trace to determine the paths of approved and received files.- Returns:
- a new
FileVerifierthat uses aNextToTestPathProviderto determine the paths
-
inFile
Creates a newVerifierthat uses the givenPathto the approved file to determine thePathto the received file.- Parameters:
approvedPath- thePathto the approved file- Returns:
- a new
FileVerifierthat uses anApprovedPathProvider - See Also:
-
inFile
Creates a newVerifierthat uses the given approvedPath to the approved file to determine thePathto the received file.- Parameters:
approvedPath- the path to the approved file- Returns:
- a new
FileVerifierthat uses anApprovedPathProvider - See Also:
-