Approvals provides many convenience functions to verify different scenarios.
Here is a list:
(Note: All verify functions have an optional "Options" parameter as the last parameter.)
- Approvals. verify (ApprovalApprover,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (ApprovalWriter,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (ApprovalWriter, ApprovalNamer,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (ExecutableCommand,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (File,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (Map,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (Object,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (ResultSet,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (SqlLoader,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (String,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verify (Verifiable,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (Iterable, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (Object[], Function1,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, Iterable,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, Iterable, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, Object[],
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, Object[], Function1,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, String, Iterable,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyAll (String, String, Object[],
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyEachFileInDirectory (File,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyEachFileInDirectory (File, FileFilter,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyEachFileInDirectory (File, FilenameFilter,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyException (Action0,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyHtml (String,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyXml (String,
$\color{#AAA}{\textsf{Options}}$ ) - Approvals. verifyXml (String, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verify (BufferedImage,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verify (Component,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verify (Image,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verify (Paintable,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verifySequence (Paintable, int, Duration, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verifySequence (Paintable, int, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verifySequence (int, Duration, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verifySequence (int, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - AwtApprovals. verifySequenceWithTimings (int, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (
$\color{#AAA}{\textsf{Options}}$ , Object, String, Object[][]) - CombinationApprovals. verifyAllCombinations (Function1, Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function2, Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function3, Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function4, Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function5, Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function6, Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function7, Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function8, Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyAllCombinations (Function9, Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function1, Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function2, Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function3, Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function4, Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function5, Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function6, Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function7, Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function8, Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - CombinationApprovals. verifyBestCoveringPairs (Function9, Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[], Object[],
$\color{#AAA}{\textsf{Options}}$ ) - JsonApprovals. verifyAsJson (Object,
$\color{#AAA}{\textsf{Options}}$ ) - JsonApprovals. verifyAsJson (Object, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - JsonApprovals. verifyJson (String,
$\color{#AAA}{\textsf{Options}}$ ) - JsonApprovals. verifyJson (String, boolean,
$\color{#AAA}{\textsf{Options}}$ ) - JsonApprovals. verifyJson (String, boolean, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - JsonJacksonApprovals. verifyAsJson (Object,
$\color{#AAA}{\textsf{Options}}$ ) - JsonJacksonApprovals. verifyAsJson (Object, Function1,
$\color{#AAA}{\textsf{Options}}$ ) - JsonXstreamApprovals. verifyAsJson (Object,
$\color{#AAA}{\textsf{Options}}$ ) - VelocityApprovals. verify (ContextAware,
$\color{#AAA}{\textsf{Options}}$ ) - XmlXomApprovals. verifyXml (String,
$\color{#AAA}{\textsf{Options}}$ )
The Java language does not allow optional parameters (like many other languages do), however the same effect can be achieved with method overloading.
Every method is actually two methods. One with an Options parameter, and one without.
The one without simply calls the other method with a new Options()
.
To find out more about the Options parameter, click here