Index

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

A

accept(String) - Method in class org.approvej.approve.FileApprover
 
accept(String) - Method in class org.approvej.approve.InplaceApprover
 
apply(Object) - Method in class org.approvej.print.ToStringPrinter
 
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.approve.PathProvider
The infix of the file containing a previously approved value.
approvedPath() - Method in class org.approvej.approve.ApprovedPathProvider
 
approvedPath() - Method in class org.approvej.approve.NextToTestPathProvider
 
approvedPath() - Method in interface org.approvej.approve.PathProvider
The path of the file containing a previously approved value.
approvedPath(String) - Static method in class org.approvej.approve.PathProviders
Creates a new ApprovedPathProvider that uses the given approved path.
approvedPath(Path) - Static method in class org.approvej.approve.PathProviders
Creates a new ApprovedPathProvider that uses the given approved path.
ApprovedPathProvider - Class in org.approvej.approve
A PathProvider that uses the path of a previously approved file to determine the path the received file and the filename extension.
Approver - Interface in org.approvej.approve
A Consumer that approved a printed value and (optionally) stores the value in some fashion if approved for a later execution.
Approvers - Class in org.approvej.approve
Collection of static methods to create Approver instances.
Approving - Search tag in class org.approvej.ApprovalBuilder
Section

B

by(Consumer<String>) - Method in class org.approvej.ApprovalBuilder
Approves the ApprovalBuilder.receivedValue by the given approver.
byFile() - Method in class org.approvej.ApprovalBuilder
Approves the receivedValue by a FileApprover, a NextToTestPathProvider, and the Printer.filenameExtension().
byFile(String) - Method in class org.approvej.ApprovalBuilder
Approves the receivedValue by a FileApprover with an ApprovedPathProvider and the given path to the approved file.
byFile(Path) - Method in class org.approvej.ApprovalBuilder
Approves the receivedValue by a FileApprover with an ApprovedPathProvider and the given Path to the approved file.
byFile(PathProvider) - Method in class org.approvej.ApprovalBuilder
Approves the receivedValue by a FileApprover with the given PathProvider.
byValue(String) - Method in class org.approvej.ApprovalBuilder
Approves the value by an InplaceApprover with the given previouslyApproved value.

C

configuration - Static variable in record class org.approvej.Configuration
The loaded Configuration object.
Configuration - Record Class in org.approvej
Central configuration class for ApproveJ.
Configuration(Printer<Object>) - Constructor for record class org.approvej.Configuration
Creates an instance of a Configuration record class.
ConfigurationError - Exception Class in org.approvej
An error that occurs when there is an issue with loading the Configuration.
ConfigurationError(String) - Constructor for exception class org.approvej.ConfigurationError
Creates a new ConfigurationError with the given message.
ConfigurationError(String, Throwable) - Constructor for exception class org.approvej.ConfigurationError
Creates a new ConfigurationError with the given message and cause.
create(Method) - Static method in interface org.approvej.approve.TestMethod
Tries to create a TestMethod from the given Method.
currentTestMethod() - Static method in class org.approvej.approve.StackTraceTestFinderUtil
Finds the current test method using the stack trace.

D

dateTimeFormat(String) - Static method in class org.approvej.scrub.Scrubbers
Creates DateTimeScrubber to replace date/time strings of the given pattern localized by the default Locale.
dateTimeFormat(String, Locale) - Static method in class org.approvej.scrub.Scrubbers
Creates DateTimeScrubber to replace date/time strings of the given pattern localized by the given locale.
DateTimeScrubber - Class in org.approvej.scrub
Special RegexScrubber to scrub date/time strings described by a DateTimeFormatter pattern like "yyyy-MM-dd" for local dates.
DEFAULT_FILENAME_EXTENSION - Static variable in interface org.approvej.approve.PathProvider
Default filename extension for the approved and received files.
defaultPrinter() - Method in record class org.approvej.Configuration
Returns the value of the defaultPrinter record component.
directory() - Method in class org.approvej.approve.ApprovedPathProvider
 
directory() - Method in class org.approvej.approve.NextToTestPathProvider
 
directory() - Method in interface org.approvej.approve.PathProvider
The path of the directory containing the approved and received files.

E

equals(Object) - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.approvej.Configuration
Indicates whether some other object is "equal to" this one.
EXCLUDED_METHODS - Static variable in class org.approvej.print.ObjectPrinter
A Set of methods that won't be regarded as property getters.

F

file(PathProvider) - Static method in class org.approvej.approve.Approvers
Creates a new Approver that uses the given PathProvider to determine the paths of approved and received files.
FileApprover - Class in org.approvej.approve
Approver that compares the received value with the approved value stored in a file.
filenameExtension() - Method in interface org.approvej.print.Printer
Returns the suggested filename extension for the printed object.
filenameExtension(String) - Method in class org.approvej.approve.NextToTestPathProvider
Use the given filenameExtension for the approved and received files.
findTestSourcePath(Method) - Static method in class org.approvej.approve.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 base package is at most 10 levels deep, the filename extension of the file is java, kt, groovy , or scala

H

hashCode() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
Returns a hash code value for this object.
hashCode() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
Returns a hash code value for this object.
hashCode() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
Returns a hash code value for this object.
hashCode() - Method in record class org.approvej.Configuration
Returns a hash code value for this object.

I

InplaceApprover - Class in org.approvej.approve
An Approver that checks if the received value is equal to a value given in place.
inSubdirectory() - Method in class org.approvej.approve.NextToTestPathProvider
Use a subdirectory named after the test class name.

J

JUnitTestMethod(Method) - Constructor for record class org.approvej.approve.TestMethod.JUnitTestMethod
Creates an instance of a JUnitTestMethod record class.

M

method() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
Returns the value of the method record component.
method() - Method in interface org.approvej.approve.TestMethod
Returns the Method of the test case.
method() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
Returns the value of the method record component.
method() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
Returns the value of the method record component.

N

nextToTest() - Static method in class org.approvej.approve.PathProviders
NextToTestPathProvider - Class in org.approvej.approve
A PathProvider that uses a stack trace to determine the paths of the approved and received files.
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.approve - package org.approvej.approve
 
org.approvej.print - package org.approvej.print
 
org.approvej.scrub - package org.approvej.scrub
 

P

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

R

RECEIVED - Static variable in interface org.approvej.approve.PathProvider
The infix of the file containing the latest received value that didn't match the previously approved.
receivedPath() - Method in class org.approvej.approve.ApprovedPathProvider
 
receivedPath() - Method in class org.approvej.approve.NextToTestPathProvider
 
receivedPath() - Method in interface org.approvej.approve.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.receivedValue.
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.
Scrubbing - Search tag in class org.approvej.ApprovalBuilder
Section
SIMPLE_TYPES - Static variable in class org.approvej.print.ObjectPrinter
A Set of classes that will be printed directly.
SpockTestMethod(Method) - Constructor for record class org.approvej.approve.TestMethod.SpockTestMethod
Creates an instance of a SpockTestMethod record class.
StackTraceTestFinderUtil - Class in org.approvej.approve
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.

T

testAnnotations() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
 
testAnnotations() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
 
testAnnotations() - Method in interface org.approvej.approve.TestMethod
Returns all test related Annotations of the TestMethod.
testAnnotations() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
 
testCaseName() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
 
testCaseName() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
 
testCaseName() - Method in interface org.approvej.approve.TestMethod
Returns the name of the test case.
testCaseName() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
 
testClass() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
 
testClass() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
 
testClass() - Method in interface org.approvej.approve.TestMethod
Returns the Class of the TestMethod.
testClass() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
 
TestMethod - Interface in org.approvej.approve
Represents a test method in a test class.
TestMethod.JUnitTestMethod - Record Class in org.approvej.approve
TestMethod implementation for JUnit/JUnit5.
TestMethod.SpockTestMethod - Record Class in org.approvej.approve
TestMethod implementation for Spock.
TestMethod.TestNGTestMethod - Record Class in org.approvej.approve
TestMethod implementation for TestNG.
TestNGTestMethod(Method) - Constructor for record class org.approvej.approve.TestMethod.TestNGTestMethod
Creates an instance of a TestNGTestMethod record class.
toString() - Method in record class org.approvej.approve.TestMethod.JUnitTestMethod
Returns a string representation of this record class.
toString() - Method in record class org.approvej.approve.TestMethod.SpockTestMethod
Returns a string representation of this record class.
toString() - Method in record class org.approvej.approve.TestMethod.TestNGTestMethod
Returns a string representation of this record class.
toString() - Method in record class org.approvej.Configuration
Returns a string representation of this record class.
ToStringPrinter - Class in org.approvej.print
A simple Printer implementation that uses the Object.toString() method.
ToStringPrinter() - Constructor for class org.approvej.print.ToStringPrinter
 

U

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

V

value(String) - Static method in class org.approvej.approve.Approvers
Creates a Approver using the given previouslyApproved value.
A B C D E F H I J M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form