Index

A D E F I N O P R S U V W 
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.FileVerifier.PathProvider
The infix of the file containing a previously approved value.
approvedPath() - Method in class org.approvej.verify.FileVerifier.BasePathProvider
 
approvedPath() - Method in interface org.approvej.verify.FileVerifier.PathProvider
The path of the file containing a previously approved value.
approvedPath() - Method in class org.approvej.verify.FileVerifier.StackTracePathProvider
 
approvedPath(Path) - Static method in class org.approvej.verify.FileVerifier.BasePathProvider
Creates a new FileVerifier.BasePathProvider that uses the given approved path.

D

dates(DateTimeFormatter) - Static method in class org.approvej.scrub.DateScrubber
Creates RegexScrubber to replace date strings of the given pattern.
DateScrubber - Class in org.approvej.scrub
Scrubs a String by replacing all occurrences of a date pattern.
DEFAULT_PRINTER - Static variable in class org.approvej.ApprovalBuilder
The default Printer used to print the value.

E

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

F

file() - Static method in class org.approvej.verify.FileVerifier
Creates a new Verifier that uses the stack trace to determine the paths of approved and received files.
file(String) - Static method in class org.approvej.verify.FileVerifier
Creates a new Verifier that uses the stack trace to determine the paths of approved and received files.
file(FileVerifier.PathProvider) - Static method in class org.approvej.verify.FileVerifier
Creates a new Verifier that uses the given FileVerifier.PathProvider to determine the paths of approved and received files.
FileVerifier - Class in org.approvej.verify
Verifier that compares the received value with the approved value stored in a file.
FileVerifier.BasePathProvider - Class in org.approvej.verify
A FileVerifier.PathProvider that uses the path of a previously approved file to determine the path the received file and the filename extension.
FileVerifier.PathProvider - Interface in org.approvej.verify
A provider for the paths of the approved and received files.
FileVerifier.StackTracePathProvider - Class in org.approvej.verify
A FileVerifier.PathProvider that uses a stack trace to determine the paths of the approved and received files.

I

inplace(String) - Static method in class org.approvej.verify.InplaceVerifier
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.InstantScrubber
Creates RegexScrubber to replace date strings of the given pattern.
InstantScrubber - Class in org.approvej.scrub
Scrubs a String by replacing all occurrences of a date time pattern.

N

NUMBERED_REPLACEMENT - Static variable in class org.approvej.scrub.RegexScrubber
Replaces each match with "[scrubbed #]" where '#' is the number of the distinct found string.
NUMBERED_REPLACEMENT - Static variable in class org.approvej.scrub.UuidScrubber
Replaces each match with "[uuid #]" where '#' is the number of the distinct found string.

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

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 Printer to convert the value to a String.

R

RECEIVED - Static variable in interface org.approvej.verify.FileVerifier.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.FileVerifier.BasePathProvider
 
receivedPath() - Method in interface org.approvej.verify.FileVerifier.PathProvider
The path of the file containing the latest received value that didn't match the previously approved.
receivedPath() - Method in class org.approvej.verify.FileVerifier.StackTracePathProvider
 
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.
RegexScrubber(Pattern, Function<Integer, String>) - Constructor for class org.approvej.scrub.RegexScrubber
Creates a RegexScrubber.RegexScrubberBuilder with the given pattern and replacement Function.
RegexScrubber.RegexScrubberBuilder - Class in org.approvej.scrub
Builder for creating a RegexScrubber.
relativeDates(DateTimeFormatter) - Static method in class org.approvej.scrub.RelativeDateScrubber
Creates 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] .

S

scrubbedOf(UnaryOperator<T>) - Method in class org.approvej.ApprovalBuilder
Applies the given scrubber to the current value.
Scrubber<T> - Interface in org.approvej.scrub
An UnaryOperator that scrubs certain information from a value.
SIMPLE_TYPES - Static variable in class org.approvej.print.ObjectPrinter
A Set of classes that will be printed directly.
stringsMatching(String) - Static method in class org.approvej.scrub.RegexScrubber
Creates a RegexScrubber.RegexScrubberBuilder with the given pattern.
stringsMatching(Pattern) - Static method in class org.approvej.scrub.RegexScrubber
Creates a RegexScrubber.RegexScrubberBuilder with the given pattern.

U

uuids() - Static method in class org.approvej.scrub.UuidScrubber
uuids(Function<Integer, String>) - Static method in class org.approvej.scrub.UuidScrubber
Creates a new RegexScrubber using the given replacement function.
UuidScrubber - Class in org.approvej.scrub
Scrubs a String by replacing all occurrences 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.
verify() - Method in class org.approvej.ApprovalBuilder
Uses the DEFAULT_VERIFIER to approve the printed ApprovalBuilder.value.
verify(Consumer<String>) - Method in class org.approvej.ApprovalBuilder
Uses the given Consumer or Verifier to approve the printed ApprovalBuilder.value.

W

with(String) - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
Creates a new Scrubber to replace any match of the RegexScrubber.RegexScrubberBuilder.pattern with the given static replacement.
with(Function<Integer, String>) - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
Create a Scrubber to replace any match of the RegexScrubber.RegexScrubberBuilder.pattern with the result of the given replacement Function.
withNumberedReplacement() - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
Creates a new Scrubber to replace strings matching the RegexScrubber.RegexScrubberBuilder.pattern with a numbered replacement.
A D E F I N O P R S U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form