Index
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
AssertionErrorthrown when an approval fails. - ApprovalError(String, String) - Constructor for exception class org.approvej.ApprovalError
-
Creates an
ApprovalErrorfor 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.BasePathProviderthat uses the given approved path.
D
- dates(DateTimeFormatter) - Static method in class org.approvej.scrub.DateScrubber
-
Creates
RegexScrubberto replace date strings of the given pattern. - DateScrubber - Class in org.approvej.scrub
-
Scrubs a
Stringby replacing all occurrences of a date pattern. - DEFAULT_PRINTER - Static variable in class org.approvej.ApprovalBuilder
-
The default
Printerused to print the value.
E
- EXCLUDED_METHODS - Static variable in class org.approvej.print.ObjectPrinter
-
A
Setof methods that won't be regarded as property getters.
F
- file() - Static method in class org.approvej.verify.FileVerifier
-
Creates a new
Verifierthat 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
Verifierthat 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
Verifierthat uses the givenFileVerifier.PathProviderto determine the paths of approved and received files. - FileVerifier - Class in org.approvej.verify
-
Verifierthat compares the received value with the approved value stored in a file. - FileVerifier.BasePathProvider - Class in org.approvej.verify
-
A
FileVerifier.PathProviderthat 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.PathProviderthat 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
Verifierusing 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
RegexScrubberto replace date strings of the given pattern. - InstantScrubber - Class in org.approvej.scrub
-
Scrubs a
Stringby 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
ObjectPrinterinstance. - 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
- printWith(Function<T, String>) - Method in class org.approvej.ApprovalBuilder
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
- RegexScrubber(Pattern, Function<Integer, String>) - Constructor for class org.approvej.scrub.RegexScrubber
-
Creates a
RegexScrubber.RegexScrubberBuilderwith the given pattern and replacementFunction. - RegexScrubber.RegexScrubberBuilder - Class in org.approvej.scrub
-
Builder for creating a
RegexScrubber. - relativeDates(DateTimeFormatter) - Static method in class org.approvej.scrub.RelativeDateScrubber
-
Creates
Scrubberto replace date strings of the given pattern. - RelativeDateScrubber - Class in org.approvej.scrub
-
Scrubs a
Stringby 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
UnaryOperatorthat scrubs certain information from a value. - SIMPLE_TYPES - Static variable in class org.approvej.print.ObjectPrinter
-
A
Setof classes that will be printed directly. - stringsMatching(String) - Static method in class org.approvej.scrub.RegexScrubber
-
Creates a
RegexScrubber.RegexScrubberBuilderwith the given pattern. - stringsMatching(Pattern) - Static method in class org.approvej.scrub.RegexScrubber
-
Creates a
RegexScrubber.RegexScrubberBuilderwith the given pattern.
U
- uuids() - Static method in class org.approvej.scrub.UuidScrubber
-
Creates a new
RegexScrubberusing theUuidScrubber.NUMBERED_REPLACEMENT. - uuids(Function<Integer, String>) - Static method in class org.approvej.scrub.UuidScrubber
-
Creates a new
RegexScrubberusing the givenreplacementfunction. - UuidScrubber - Class in org.approvej.scrub
-
Scrubs a
Stringby replacing all occurrences UUIDs.
V
- Verifier - Interface in org.approvej.verify
-
A
Consumerthat 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
W
- with(String) - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
-
Creates a new
Scrubberto replace any match of theRegexScrubber.RegexScrubberBuilder.patternwith the given static replacement. - with(Function<Integer, String>) - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
- withNumberedReplacement() - Method in class org.approvej.scrub.RegexScrubber.RegexScrubberBuilder
-
Creates a new
Scrubberto replace strings matching theRegexScrubber.RegexScrubberBuilder.patternwith a numbered replacement.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form