Index

A B D E F I N O P R S U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accept(String) - Method in class org.approvej.verify.FileVerifier
 
accept(String) - Method in class org.approvej.verify.InplaceVerifier
 
apply(Object) - Method in class org.approvej.print.ObjectPrinter
 
apply(String) - Method in class org.approvej.scrub.RegexScrubber
 
apply(String) - Method in class org.approvej.scrub.RelativeDateScrubber
 
ApprovalBuilder<T> - Class in org.approvej
A builder to configure an approval for a given value.
ApprovalError - Exception Class in org.approvej
An AssertionError thrown when an approval fails.
ApprovalError(String, String) - Constructor for exception class org.approvej.ApprovalError
Creates an ApprovalError for when the given received value does not match the previouslyApproved.
approve(T) - Static method in class org.approvej.ApprovalBuilder
Creates a new builder for the given value.
APPROVED - Static variable in interface org.approvej.verify.PathProvider
The infix of the file containing a previously approved value.
approvedPath() - Method in class org.approvej.verify.ApprovedPathProvider
 
approvedPath() - Method in class org.approvej.verify.NextToTestPathProvider
 
approvedPath() - Method in interface org.approvej.verify.PathProvider
The path of the file containing a previously approved value.
approvedPath(String) - Static method in class org.approvej.verify.PathProviders
Creates a new ApprovedPathProvider that uses the given approved path.
approvedPath(Path) - Static method in class org.approvej.verify.PathProviders
Creates a new ApprovedPathProvider that uses the given approved path.
ApprovedPathProvider - Class in org.approvej.verify
A PathProvider that uses the path of a previously approved file to determine the path the received file and the filename extension.

B

build() - Method in class org.approvej.verify.NextToTestPathProvider.NextToTestPathProviderBuilder
 
build() - Method in interface org.approvej.verify.PathProviderBuilder
Builds the PathProvider with the current configuration.

D

dates(DateTimeFormatter) - Static method in class org.approvej.scrub.Scrubbers
Creates RegexScrubber to replace date strings of the given pattern.
DEFAULT_FILENAME_EXTENSION - Static variable in interface org.approvej.verify.PathProvider
Default filename extension for the approved and received files.
DEFAULT_PRINTER - Static variable in class org.approvej.ApprovalBuilder
The default Printer used to print the value.
directory() - Method in class org.approvej.verify.ApprovedPathProvider
 
directory() - Method in class org.approvej.verify.NextToTestPathProvider
 
directory() - Method in interface org.approvej.verify.PathProvider
The path of the directory containing the approved and received files.

E

EXCLUDED_METHODS - Static variable in class org.approvej.print.ObjectPrinter
A Set of methods that won't be regarded as property getters.

F

filenameExtension() - Method in interface org.approvej.print.Printer
Returns the suggested filename extension for the printed object.
filenameExtension(String) - Method in class org.approvej.verify.NextToTestPathProvider.NextToTestPathProviderBuilder
Sets the filename extension for the approved and received files.
FileVerifier - Class in org.approvej.verify
Verifier that compares the received value with the approved value stored in a file.
findTestSourcePath(Method) - Static method in class org.approvej.verify.StackTraceTestFinderUtil
Finds the source path of the test method, making the following assumptions: the test class' name is also the name of the source file, the file is at most 10 levels deep, the filename extension of the file is java, kt, or groovy

I

inFile() - Static method in class org.approvej.verify.Verifiers
Creates a new Verifier that uses the stack trace to determine the paths of approved and received files.
inFile(String) - Static method in class org.approvej.verify.Verifiers
Creates a new Verifier that uses the given approvedPath to the approved file to determine the Path to the received file.
inFile(Path) - Static method in class org.approvej.verify.Verifiers
Creates a new Verifier that uses the given Path to the approved file to determine the Path to the received file.
inFile(PathProvider) - Static method in class org.approvej.verify.Verifiers
Creates a new Verifier that uses the given PathProvider to determine the paths of approved and received files.
inFile(PathProviderBuilder) - Static method in class org.approvej.verify.Verifiers
Builds the given PathProviderBuilder and uses it to create a new FileVerifier.
inplace(String) - Static method in class org.approvej.verify.Verifiers
Creates a Verifier using the given previouslyApproved value.
InplaceVerifier - Class in org.approvej.verify
A verifier that checks if the received value is equal to a value given in place.
instants(DateTimeFormatter) - Static method in class org.approvej.scrub.Scrubbers
RegexScrubber that replaces instant strings of the given pattern.
inSubdirectory() - Method in class org.approvej.verify.NextToTestPathProvider.NextToTestPathProviderBuilder
Sets whether to create a subdirectory for the approved and received files.

N

nextToTest() - Static method in class org.approvej.verify.PathProviders
NextToTestPathProvider - Class in org.approvej.verify
A PathProvider that uses a stack trace to determine the paths of the approved and received files.
NextToTestPathProvider.NextToTestPathProviderBuilder - Class in org.approvej.verify
Builder for creating a NextToTestPathProvider.
numbered() - Static method in class org.approvej.scrub.Replacements
Replaces each match with "[scrubbed #]" where '#' is the number of the distinct replacement.
numbered(String) - Static method in class org.approvej.scrub.Replacements
Replaces with "[label #]" where label is the given label and '#' is the number of the distinct replacement.

O

objectPrinter() - Static method in class org.approvej.print.ObjectPrinter
Creates a new ObjectPrinter instance.
ObjectPrinter<T> - Class in org.approvej.print
A generic printer for Java Objects that prints their properties and values one per line.
org.approvej - package org.approvej
 
org.approvej.print - package org.approvej.print
 
org.approvej.scrub - package org.approvej.scrub
 
org.approvej.verify - package org.approvej.verify
 

P

PathProvider - Interface in org.approvej.verify
A provider for the paths of the approved and received files.
PathProviderBuilder - Interface in org.approvej.verify
A builder for PathProvider instances.
PathProviders - Class in org.approvej.verify
Collection of static methods to create PathProviders and PathProviderBuilder instances.
Printer<T> - Interface in org.approvej.print
A Function that converts an object to a String.
printWith(Function<T, String>) - Method in class org.approvej.ApprovalBuilder
Uses the given Function to convert the ApprovalBuilder.value to a String.
printWith(Printer<T>) - Method in class org.approvej.ApprovalBuilder
Uses the given Printer to convert the ApprovalBuilder.value to a String.

R

RECEIVED - Static variable in interface org.approvej.verify.PathProvider
The infix of the file containing the latest received value that didn't match the previously approved.
receivedPath() - Method in class org.approvej.verify.ApprovedPathProvider
 
receivedPath() - Method in class org.approvej.verify.NextToTestPathProvider
 
receivedPath() - Method in interface org.approvej.verify.PathProvider
The path of the file containing the latest received value that didn't match the previously approved.
RegexScrubber - Class in org.approvej.scrub
Scrubs a String by replacing all occurrences of a pattern by applying the given replacement Function for each finding.
relativeDates(DateTimeFormatter) - Static method in class org.approvej.scrub.Scrubbers
Creates a Scrubber to replace date strings of the given pattern.
RelativeDateScrubber - Class in org.approvej.scrub
Scrubs a String by replacing all occurrences of a date pattern with relative descriptions, like [today], [yesterday], [2 days from now] , [21 days ago] .
replacement(String) - Method in class org.approvej.scrub.RegexScrubber
Set the replacement Function always returning the given staticReplacement.
replacement(Function<Integer, Object>) - Method in class org.approvej.scrub.RegexScrubber
Set the replacement Function to be used.
Replacements - Class in org.approvej.scrub
Collection of replacement functions (Functions that take an Integer and return an Object) for use with Scrubbers.

S

scrubbedOf(UnaryOperator<T>) - Method in class org.approvej.ApprovalBuilder
Applies the given scrubber to the current ApprovalBuilder.value.
Scrubber<T> - Interface in org.approvej.scrub
An UnaryOperator that scrubs certain information from a value.
Scrubbers - Class in org.approvej.scrub
Collection of static methods to create Scrubber instances.
SIMPLE_TYPES - Static variable in class org.approvej.print.ObjectPrinter
A Set of classes that will be printed directly.
StackTraceTestFinderUtil - Class in org.approvej.verify
Utility class to find the current test method using the stack trace.
string(String) - Static method in class org.approvej.scrub.Replacements
Replaces each match with the given static replacement string.
stringsMatching(String) - Static method in class org.approvej.scrub.Scrubbers
Creates a RegexScrubber with the given pattern.
stringsMatching(Pattern) - Static method in class org.approvej.scrub.Scrubbers
Creates a RegexScrubber with the given pattern.

U

uuids() - Static method in class org.approvej.scrub.Scrubbers
RegexScrubber for UUIDs.

V

Verifier - Interface in org.approvej.verify
A Consumer that verifies a printed value and (optionally) stores the value in some fashion if approved for a later execution.
Verifiers - Class in org.approvej.verify
Collection of static methods to create Verifier instances.
verify() - Method in class org.approvej.ApprovalBuilder
Uses the DEFAULT_VERIFIER to approve the printed ApprovalBuilder.value.
verify(String) - Method in class org.approvej.ApprovalBuilder
Verifies that the given previouslyApproved value equals the ApprovalBuilder.value using an InplaceVerifier.
verify(Consumer<String>) - Method in class org.approvej.ApprovalBuilder
Uses the given Consumer or Verifier to approve the printed ApprovalBuilder.value.
A B D E F I N O P R S U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form