Skip navigation links
A B C D E F G H I J K L M N O P R S T V W 

A

apply(IN1) - Method in interface com.github.writethemfirst.approvals.utils.functions.Function1
Applies the function to the provided argument and returns the result.
apply(IN1, IN2) - Method in interface com.github.writethemfirst.approvals.utils.functions.Function2
Applies the function to the provided arguments and returns the result.
apply(IN1, IN2, IN3) - Method in interface com.github.writethemfirst.approvals.utils.functions.Function3
Applies the function to the provided arguments and returns the result.
apply(IN1, IN2, IN3, IN4) - Method in interface com.github.writethemfirst.approvals.utils.functions.Function4
Applies the function to the provided arguments and returns the result.
apply(IN1, IN2, IN3, IN4, IN5) - Method in interface com.github.writethemfirst.approvals.utils.functions.Function5
Applies the function to the provided arguments and returns the result.
applyCombinations(Iterable<IN1>, Function1<IN1, ?>) - Static method in class com.github.writethemfirst.approvals.utils.FunctionUtils
Applies the provided function to all combinations of all the provided arguments for the function, and returns the produced results as a String.
applyCombinations(Iterable<IN1>, Iterable<IN2>, Function2<IN1, IN2, ?>) - Static method in class com.github.writethemfirst.approvals.utils.FunctionUtils
Applies the provided function to all combinations of all the provided arguments for the function, and returns the produced results as a String.
applyCombinations(Iterable<IN1>, Iterable<IN2>, Iterable<IN3>, Function3<IN1, IN2, IN3, ?>) - Static method in class com.github.writethemfirst.approvals.utils.FunctionUtils
Applies the provided function to all combinations of all the provided arguments for the function, and returns the produced results as a String.
applyCombinations(Iterable<IN1>, Iterable<IN2>, Iterable<IN3>, Iterable<IN4>, Function4<IN1, IN2, IN3, IN4, ?>) - Static method in class com.github.writethemfirst.approvals.utils.FunctionUtils
Applies the provided function to all combinations of all the provided arguments for the function, and returns the produced results as a String.
applyCombinations(Iterable<IN1>, Iterable<IN2>, Iterable<IN3>, Iterable<IN4>, Iterable<IN5>, Function5<IN1, IN2, IN3, IN4, IN5, ?>) - Static method in class com.github.writethemfirst.approvals.utils.FunctionUtils
Applies the provided function to all combinations of all the provided arguments for the function, and returns the produced results as a String.
ApprovalFiles - Class in com.github.writethemfirst.approvals.files
ApprovalFiles
Approvals - Class in com.github.writethemfirst.approvals
 
approved - Variable in class com.github.writethemfirst.approvals.files.ApprovalFiles
Path to an approved entry.
Approver - Class in com.github.writethemfirst.approvals
Approvals
Approver() - Constructor for class com.github.writethemfirst.approvals.Approver
Standard approvals, with default Reporter and file name detected from the test class used to apply the constructor and the test method used to apply a Approver.verify(Object) method.
ARAXIS - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 

B

BEYOND_COMPARE - Static variable in interface com.github.writethemfirst.approvals.reporters.linux.Linux
 
BEYOND_COMPARE_3 - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
BEYOND_COMPARE_4 - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
build(Path, String, String) - Static method in class com.github.writethemfirst.approvals.files.ApprovalFiles
Builds a pair of approval entries from the provided folder, method name, and extension.

C

callerClass(Class<?>...) - Static method in class com.github.writethemfirst.approvals.utils.StackUtils
Returns the caller class of reference by searching the current thread stacktrace.
callerMethod(Class<?>) - Static method in class com.github.writethemfirst.approvals.utils.StackUtils
Returns the caller method of the provided referenceClass.
CODE_COMPARE - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
com.github.writethemfirst.approvals - package com.github.writethemfirst.approvals
Approvals Package
com.github.writethemfirst.approvals.files - package com.github.writethemfirst.approvals.files
Files Package
com.github.writethemfirst.approvals.reporters - package com.github.writethemfirst.approvals.reporters
Reporters
com.github.writethemfirst.approvals.reporters.linux - package com.github.writethemfirst.approvals.reporters.linux
Linux Reporters Package
com.github.writethemfirst.approvals.reporters.windows - package com.github.writethemfirst.approvals.reporters.windows
Windows Reporters Package
com.github.writethemfirst.approvals.utils - package com.github.writethemfirst.approvals.utils
Utils Package
com.github.writethemfirst.approvals.utils.functions - package com.github.writethemfirst.approvals.utils.functions
Functions Package
CombinationApprover - Class in com.github.writethemfirst.approvals
Approves a function by calling it with combinations of parameters.
CombinationApprover() - Constructor for class com.github.writethemfirst.approvals.CombinationApprover
 
Command - Class in com.github.writethemfirst.approvals.reporters.windows
Wrapper around an executable command outside the JVM.
Command(String, String) - Constructor for class com.github.writethemfirst.approvals.reporters.windows.Command
Represents the latest version of the executable found by scanning subfolders of path.
CommandReporter - Class in com.github.writethemfirst.approvals.reporters.windows
A reporter which delegates execution to an external command.
CommandReporter(Command) - Constructor for class com.github.writethemfirst.approvals.reporters.windows.CommandReporter
 
CommandReporter(Command, String) - Constructor for class com.github.writethemfirst.approvals.reporters.windows.CommandReporter
Constructs the reporter with a single String of arguments, split on spaces.
copy(Path, Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Copies the content of a file found at a specified Path to another file located at another specified Path.
copyToFolder(Path, Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Copies the content of a file found at a specified Path to another file located in the specified destinationFolder.
createFileIfNeeded(Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Creates an empty approval file if it doesn’t exist yet.

D

DEFAULT - Static variable in interface com.github.writethemfirst.approvals.Reporter
Global property allowing to retrieve the default reporter for the current execution context.
DEFAULT - Static variable in interface com.github.writethemfirst.approvals.reporters.linux.Linux
 
DEFAULT - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
DEFAULT_ARGUMENTS - Static variable in class com.github.writethemfirst.approvals.reporters.windows.CommandReporter
 

E

equals(Object) - Method in class com.github.writethemfirst.approvals.files.ApprovalFiles
Overriding equals to allow filtering of duplicates.
execute(String...) - Method in class com.github.writethemfirst.approvals.reporters.windows.Command
Runs the executable outside the JVM by calling Runtime.exec().

F

FileUtils - Class in com.github.writethemfirst.approvals.utils
FileUtils
FileUtils() - Constructor for class com.github.writethemfirst.approvals.utils.FileUtils
 
FirstWorkingReporter - Class in com.github.writethemfirst.approvals.reporters
FirstWorkingReporter
FirstWorkingReporter(Reporter...) - Constructor for class com.github.writethemfirst.approvals.reporters.FirstWorkingReporter
Constructs a FirstWorkingReporter with a list of potentially usable reporters
FolderApprover - Class in com.github.writethemfirst.approvals
Approves a folder.
FolderApprover() - Constructor for class com.github.writethemfirst.approvals.FolderApprover
Standard FolderApprovals.
Function1<IN1,OUT> - Interface in com.github.writethemfirst.approvals.utils.functions
Function1
Function2<IN1,IN2,OUT> - Interface in com.github.writethemfirst.approvals.utils.functions
Function2
Function3<IN1,IN2,IN3,OUT> - Interface in com.github.writethemfirst.approvals.utils.functions
Function3
Function4<IN1,IN2,IN3,IN4,OUT> - Interface in com.github.writethemfirst.approvals.utils.functions
Function4
Function5<IN1,IN2,IN3,IN4,IN5,OUT> - Interface in com.github.writethemfirst.approvals.utils.functions
Function5
FunctionUtils - Class in com.github.writethemfirst.approvals.utils
# FunctionUtils
FunctionUtils() - Constructor for class com.github.writethemfirst.approvals.utils.FunctionUtils
 

G

GVIM - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows

H

hashCode() - Method in class com.github.writethemfirst.approvals.files.ApprovalFiles
Overriding hashCode to allow filtering of duplicates.
haveSameContent() - Method in class com.github.writethemfirst.approvals.files.ApprovalFiles
If approved and received are regular files, this method will check if both files have the same content (by reading them and comparing the data afterwards).

I

IDEA - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
IDEA_ULTIMATE - Static variable in interface com.github.writethemfirst.approvals.reporters.linux.Linux
 
isAvailable() - Method in interface com.github.writethemfirst.approvals.Reporter
A Reporter may not be relevant in all contexts, and they should provide some automated checks validating that they’re actually able to perform what they’re supposed to do in the current execution customFiles (like libraries available in the classpath or Diff / Merge programs available on the computer).
isAvailable() - Method in class com.github.writethemfirst.approvals.reporters.FirstWorkingReporter
Checks if a working reporter has been found or not.
isAvailable() - Method in class com.github.writethemfirst.approvals.reporters.JUnit5Reporter
Checks if the JUnit5Reporter.JUNIT5_ASSERTIONS JUnit 5 class we need is present in the classpath.
isAvailable() - Method in class com.github.writethemfirst.approvals.reporters.ThrowsReporter
A ThrowsReporter is considered as always available since it has no external requirements at all.
isAvailable() - Method in class com.github.writethemfirst.approvals.reporters.windows.Command
Tests if an executable file was found in the path.
isAvailable() - Method in class com.github.writethemfirst.approvals.reporters.windows.CommandReporter
 
isLinux - Static variable in class com.github.writethemfirst.approvals.utils.OSUtils
Indicates if the current operating system is included in the Linux Family (all distributions / versions included).
isWindows - Static variable in class com.github.writethemfirst.approvals.utils.OSUtils
Indicates if the current operating system is included in the Windows Family (all versions included).

J

JUnit5Reporter - Class in com.github.writethemfirst.approvals.reporters
JUnit5Reporter
JUnit5Reporter() - Constructor for class com.github.writethemfirst.approvals.reporters.JUnit5Reporter
 

K

KDIFF - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows

L

Linux - Interface in com.github.writethemfirst.approvals.reporters.linux
Defines Reporters which work on Linux only.
listChildrenApprovalFiles() - Method in class com.github.writethemfirst.approvals.files.ApprovalFiles
If approved and received actually are folders (which can be the case while using the folder approval features), this method allows to list all the children approval files from those folders.
listFiles(Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Returns a list of all regular files found in a base directory up to a depth of MAX_DEPTH.

M

mismatch(Path, Path) - Method in interface com.github.writethemfirst.approvals.Reporter
A Reporter is called whenever a difference is found while comparing the output of a Program Under Tests and the existing approved files linked to the tests.
mismatch(Path, Path) - Method in class com.github.writethemfirst.approvals.reporters.FirstWorkingReporter
Reports a mismatch between the provided approved and received files using the first working reporter found.
mismatch(Path, Path) - Method in class com.github.writethemfirst.approvals.reporters.JUnit5Reporter
Method called in case a mismatch is found.
mismatch(Path, Path) - Method in class com.github.writethemfirst.approvals.reporters.ThrowsReporter
Method called in case a mismatch is found.
mismatch(Path, Path) - Method in class com.github.writethemfirst.approvals.reporters.windows.CommandReporter
 

N

namedArguments(String...) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Specifies a header naming the arguments of the function under test.

O

OSUtils - Class in com.github.writethemfirst.approvals.utils
OSUtils
OSUtils() - Constructor for class com.github.writethemfirst.approvals.utils.OSUtils
 

P

PROGRAM_FILES_KEY - Static variable in class com.github.writethemfirst.approvals.reporters.windows.Command
 

R

received - Variable in class com.github.writethemfirst.approvals.files.ApprovalFiles
Path to an received entry.
Reporter - Interface in com.github.writethemfirst.approvals
Reporter
reportTo(Reporter) - Method in class com.github.writethemfirst.approvals.Approver
Specifies the reporter used to report mismatches.
reportTo(Reporter) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Specifies the reporter used to report mismatches.
reportTo(Reporter) - Method in class com.github.writethemfirst.approvals.FolderApprover
Specifies the reporter used to report mismatches.

S

silentRead(Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Reads the file located at the specified Path, and returns its content in case the file exists.
silentRecursiveRemove(Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Removes recursively all elements if path is a directory, then removes path.
silentRecursiveRemove(File) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Removes recursively all elements if file is a directory, then removes file.
silentRemove(Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Removes the file located at the specified Path if it exists.
StackUtils - Class in com.github.writethemfirst.approvals.utils
StackUtils
StackUtils() - Constructor for class com.github.writethemfirst.approvals.utils.StackUtils
 

T

testing(Class<?>) - Method in class com.github.writethemfirst.approvals.Approver
Specifies the testClass to use as a folder name to store approved and received files.
testing(Class<?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Specifies the testClass to use as a folder name to store approved and received files.
testing(Class<?>) - Method in class com.github.writethemfirst.approvals.FolderApprover
Specifies the testClass to use as a folder name to store approved and received files.
ThrowsReporter - Class in com.github.writethemfirst.approvals.reporters
ThrowsReporter
ThrowsReporter() - Constructor for class com.github.writethemfirst.approvals.reporters.ThrowsReporter
 
TORTOISE_SVN - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
Download TortoiseSVN from https://tortoisesvn.net/downloads.html

V

verify(Object) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program (the function’s argument) and the content of the approved file matching with the test method.
verify(Object) - Method in class com.github.writethemfirst.approvals.Approver
Compares the actual output of your program (the function’s argument) and the content of the approved file matching with the test method.
verifyAllCombinations(Iterable<I1>, Function1<I1, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(I1[], Function1<I1, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Function2<I1, I2, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(I1[], I2[], Function2<I1, I2, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Function3<I1, I2, I3, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], Function3<I1, I2, I3, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Iterable<I4>, Function4<I1, I2, I3, I4, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], I4[], Function4<I1, I2, I3, I4, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Iterable<I4>, Iterable<I5>, Function5<I1, I2, I3, I4, I5, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], I4[], I5[], Function5<I1, I2, I3, I4, I5, ?>) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program and the content of the approved file matching with the test method (see Approvals.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Function1<I1, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(I1[], Function1<I1, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Function2<I1, I2, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(I1[], I2[], Function2<I1, I2, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Function3<I1, I2, I3, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], Function3<I1, I2, I3, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Iterable<I4>, Function4<I1, I2, I3, I4, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], I4[], Function4<I1, I2, I3, I4, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(Iterable<I1>, Iterable<I2>, Iterable<I3>, Iterable<I4>, Iterable<I5>, Function5<I1, I2, I3, I4, I5, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllCombinations(I1[], I2[], I3[], I4[], I5[], Function5<I1, I2, I3, I4, I5, ?>) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Compares the actual output of your program and the content of the approved file matching with the test method (see Approver.verify(Object) for details).
verifyAllFiles(Path) - Static method in class com.github.writethemfirst.approvals.Approvals
Compares the actual output of your program (files in the folder actualFolder) and the content of the approved “Master” folder matching with the test method.
verifyAllFiles(Path) - Method in class com.github.writethemfirst.approvals.FolderApprover
Compares the actual output of your program (files in the folder actualFolder) and the content of the approved “Master” folder matching with the test method.

W

Windows - Interface in com.github.writethemfirst.approvals.reporters.windows
Defines Reporters which work on Windows only.
WINMERGE - Static variable in interface com.github.writethemfirst.approvals.reporters.windows.Windows
 
write(String, Path) - Static method in class com.github.writethemfirst.approvals.utils.FileUtils
Writes the specified content in the file located at the specified Path.
writeTo(String) - Method in class com.github.writethemfirst.approvals.Approver
Specifies the name to use for approved and received files.
writeTo(String) - Method in class com.github.writethemfirst.approvals.CombinationApprover
Specifies the name to use for approved and received files.
writeTo(String) - Method in class com.github.writethemfirst.approvals.FolderApprover
Specifies the name to use for approved and received files.
A B C D E F G H I J K L M N O P R S T V W 
Skip navigation links

Copyright © 2018 Write Them First!. All rights reserved.