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

public static void verify(int[] ints, Path path)

An overload for verifying int arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • ints – the int array that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(byte[] bytes, Path path)

An overload for verifying byte arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • bytes – the byte array that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(short[] shorts, Path path)

An overload for verifying short arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • shorts – the short array that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(long[] longs, Path path)

An overload for verifying long arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • longs – the long array that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(float[] floats, Path path)

An overload for verifying float arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • floats – the float array that needs to be verified
  • path – the path in which to store the approval file

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

public static void verify(char[] chars, Path path)

An overload for verifying char arrays. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • chars – the char array that needs to be verified
  • path – the path in which to store the approval file

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

public static void verify(byte value, Path path)

An overload for verifying a single byte value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the byte that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(short value, Path path)

An overload for verifying a single short value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the short that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(int value, Path path)

An overload for verifying a single int value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the int that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(long value, Path path)

An overload for verifying a single long value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the long that needs to be verified
  • path – the path in which to store the approval file

verify

public static void verify(float value, Path path)

An overload for verifying a single float value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the float that needs to be verified
  • path – the path in which to store the approval file

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

public static void verify(char value, Path path)

An overload for verifying a single char value. This will call the approval object with proper reporter and use the path for verification.

Parameters:
  • value – the char that needs to be verified
  • path – the path in which to store the approval file

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