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 FileVerifier
inFile()
Creates a newVerifier
that uses the stack trace to determine the paths of approved and received files.static FileVerifier
static FileVerifier
static FileVerifier
inFile
(PathProvider pathProvider) Creates a newVerifier
that uses the givenPathProvider
to determine the paths of approved and received files.static FileVerifier
inFile
(PathProviderBuilder pathProviderBuilder) Builds the givenPathProviderBuilder
and uses it to create a newFileVerifier
.static InplaceVerifier
Creates aVerifier
using the given previouslyApproved value.
-
Method Details
-
inplace
Creates aVerifier
using the given previouslyApproved value.- Parameters:
previouslyApproved
- the approved value- Returns:
- a new
InplaceVerifier
for the given previouslyApproved value.
-
inFile
Creates a newVerifier
that uses the givenPathProvider
to determine the paths of approved and received files.- Parameters:
pathProvider
- the provider for the paths of the approved and received files- Returns:
- a new
FileVerifier
that uses the givenPathProvider
-
inFile
Builds the givenPathProviderBuilder
and uses it to create a newFileVerifier
.- Parameters:
pathProviderBuilder
- thePathProviderBuilder
- Returns:
- a new
FileVerifier
that uses the givenPathProvider
- See Also:
-
inFile
Creates a newVerifier
that uses the stack trace to determine the paths of approved and received files.- Returns:
- a new
FileVerifier
that uses aNextToTestPathProvider
to determine the paths
-
inFile
Creates a newVerifier
that uses the givenPath
to the approved file to determine thePath
to the received file.- Parameters:
approvedPath
- thePath
to the approved file- Returns:
- a new
FileVerifier
that uses anApprovedPathProvider
- See Also:
-
inFile
Creates a newVerifier
that uses the given approvedPath to the approved file to determine thePath
to the received file.- Parameters:
approvedPath
- the path to the approved file- Returns:
- a new
FileVerifier
that uses anApprovedPathProvider
- See Also:
-