Approvals¶
- public final class Approvals¶
Approvals for primitive types. This is a convenient static utility class that is the first thing to try when you want to use the library. If you happen to be lucky and need to verify only primitive types or array of primitive types then we got you covered.
User: nikolavp (Nikola Petrov) Date: 07/04/14 Time: 11:38
Methods¶
verify¶
verify¶
verify¶
verify¶
verify¶
verify¶
- public static void verify(double[] doubles, Path path)¶
An overload for verifying double arrays. This will call the approval object with proper reporter and use the path for verification.
Parameters: - doubles – the double array that needs to be verified
- path – the path in which to store the approval file
verify¶
- public static void verify(boolean[] booleans, Path path)¶
An overload for verifying boolean arrays. This will call the approval object with proper reporter and use the path for verification.
Parameters: - booleans – the boolean array that needs to be verified
- path – the path in which to store the approval file
verify¶
verify¶
- public static void verify(String[] strings, Path path)¶
An overload for verifying string arrays. This will call the approval object with proper reporter and use the path for verification.
Parameters: - strings – the string array that needs to be verified
- path – the path in which to store the approval file
verify¶
verify¶
verify¶
verify¶
verify¶
verify¶
- public static void verify(double value, Path path)¶
An overload for verifying a single double value. This will call the approval object with proper reporter and use the path for verification.
Parameters: - value – the double that needs to be verified
- path – the path in which to store the approval file
verify¶
- public static void verify(boolean value, Path path)¶
An overload for verifying a single boolean value. This will call the approval object with proper reporter and use the path for verification.
Parameters: - value – the boolean that needs to be verified
- path – the path in which to store the approval file
verify¶
verify¶
- public static void verify(String value, Path path)¶
An overload for verifying a single String value. This will call the approval object with proper reporter and use the path for verification.
Parameters: - value – the String that needs to be verified
- path – the path in which to store the approval file