net.sf.ezmorph.test
Class ArrayAssertions

java.lang.Object
  extended by junit.framework.Assert
      extended by net.sf.ezmorph.test.ArrayAssertions

public class ArrayAssertions
extends Assert

Provides assertions on arrays (primitive and objects).
All methods support multiple dimensional arrays.

Author:
Andres Almiray

Method Summary
static void assertEquals(boolean[] expecteds, boolean[] actuals)
          Asserts that two boolean[] are equal.
static void assertEquals(boolean[] expecteds, Object[] actuals)
          Asserts that a boolean[] is equal to an Object[] (presumably an Boolean[])
static void assertEquals(byte[] expecteds, byte[] actuals)
          Asserts that two byte[] are equal.
static void assertEquals(byte[] expecteds, Object[] actuals)
          Asserts that a byte[] is equal to an Object[] (presumably an Byte[])
static void assertEquals(char[] expecteds, char[] actuals)
          Asserts that two char[] are equal.
static void assertEquals(char[] expecteds, Object[] actuals)
          Asserts that a char[] is equal to an Object[] (presumably an Character[])
static void assertEquals(double[] expecteds, double[] actuals)
          Asserts that two double[] are equal.
static void assertEquals(double[] expecteds, Object[] actuals)
          Asserts that a double[] is equal to an Object[] (presumably an Double[])
static void assertEquals(float[] expecteds, float[] actuals)
          Asserts that two float[] are equal.
static void assertEquals(float[] expecteds, Object[] actuals)
          Asserts that a float[] is equal to an Object[] (presumably an Float[])
static void assertEquals(int[] expecteds, int[] actuals)
          Asserts that two int[] are equal.
static void assertEquals(int[] expecteds, Object[] actuals)
          Asserts that a int[] is equal to an Object[] (presumably an Integer[])
static void assertEquals(List expecteds, List actuals)
          Asserts that two Lists are equal.
static void assertEquals(long[] expecteds, long[] actuals)
          Asserts that two long[] are equal.
static void assertEquals(long[] expecteds, Object[] actuals)
          Asserts that a long[] is equal to an Object[] (presumably an Long[])
static void assertEquals(Object[] expecteds, boolean[] actuals)
          Asserts that Object[] (presumably an Boolean[]) is equal to an boolean[].
static void assertEquals(Object[] expecteds, byte[] actuals)
          Asserts that Object[] (presumably an Byte[]) is equal to an byte[].
static void assertEquals(Object[] expecteds, char[] actuals)
          Asserts that Object[] (presumably an Character[]) is equal to an char[].
static void assertEquals(Object[] expecteds, double[] actuals)
          Asserts that Object[] (presumably an Double[]) is equal to an double[].
static void assertEquals(Object[] expecteds, float[] actuals)
          Asserts that Object[] (presumably an Float[]) is equal to an float[].
static void assertEquals(Object[] expecteds, int[] actuals)
          Asserts that Object[] (presumably an Integer[]) is equal to an int[].
static void assertEquals(Object[] expecteds, long[] actuals)
          Asserts that Object[] (presumably an Long[]) is equal to an long[].
static void assertEquals(Object[] expecteds, Object[] actuals)
          Asserts that two Object[] are equal.
static void assertEquals(Object[] expecteds, short[] actuals)
          Asserts that Object[] (presumably an Short[]) is equal to an short[].
static void assertEquals(Object expected, Object actual)
          Asserts that two objects are equal.
static void assertEquals(short[] expecteds, Object[] actuals)
          Asserts that a short[] is equal to an Object[] (presumably an Short[])
static void assertEquals(short[] expecteds, short[] actuals)
          Asserts that two short[] are equal.
static void assertEquals(String message, boolean[] expecteds, boolean[] actuals)
          Asserts that two boolean[] are equal.
static void assertEquals(String message, boolean[] expecteds, Object[] actuals)
          Asserts that a boolean[] is equal to an Object[] (presumably an Boolean[])
static void assertEquals(String message, byte[] expecteds, byte[] actuals)
          Asserts that two byte[] are equal.
static void assertEquals(String message, byte[] expecteds, Object[] actuals)
          Asserts that a byte[] is equal to an Object[] (presumably an Byte[])
static void assertEquals(String message, char[] expecteds, char[] actuals)
          Asserts that two char[] are equal.
static void assertEquals(String message, char[] expecteds, Object[] actuals)
          Asserts that a char[] is equal to an Object[] (presumably an Character[])
static void assertEquals(String message, double[] expecteds, double[] actuals)
          Asserts that two double[] are equal.
static void assertEquals(String message, double[] expecteds, Object[] actuals)
          Asserts that a double[] is equal to an Object[] (presumably an Double[])
static void assertEquals(String message, float[] expecteds, float[] actuals)
          Asserts that two float[] are equal.
static void assertEquals(String message, float[] expecteds, Object[] actuals)
          Asserts that a float[] is equal to an Object[] (presumably an Float[])
static void assertEquals(String message, int[] expecteds, int[] actuals)
          Asserts that two int[] are equal.
static void assertEquals(String message, int[] expecteds, Object[] actuals)
          Asserts that a int[] is equal to an Object[] (presumably an Integer[])
static void assertEquals(String message, List expecteds, List actuals)
          Asserts that two Lists are equal.
static void assertEquals(String message, long[] expecteds, long[] actuals)
          Asserts that two long[] are equal.
static void assertEquals(String message, long[] expecteds, Object[] actuals)
          Asserts that a long[] is equal to an Object[] (presumably an Long[])
static void assertEquals(String message, Object[] expecteds, boolean[] actuals)
          Asserts that Object[] (presumably an Boolean[]) is equal to an boolean[].
static void assertEquals(String message, Object[] expecteds, byte[] actuals)
          Asserts that Object[] (presumably an Byte[]) is equal to an byte[].
static void assertEquals(String message, Object[] expecteds, char[] actuals)
          Asserts that Object[] (presumably an Character[]) is equal to an char[].
static void assertEquals(String message, Object[] expecteds, double[] actuals)
          Asserts that Object[] (presumably an Double[]) is equal to an double[].
static void assertEquals(String message, Object[] expecteds, float[] actuals)
          Asserts that Object[] (presumably an Float[]) is equal to an float[].
static void assertEquals(String message, Object[] expecteds, int[] actuals)
          Asserts that Object[] (presumably an Integer[]) is equal to an int[].
static void assertEquals(String message, Object[] expecteds, long[] actuals)
          Asserts that Object[] (presumably an Long[]) is equal to an long[].
static void assertEquals(String message, Object[] expecteds, Object[] actuals)
          Asserts that two Object[] are equal.
static void assertEquals(String message, Object[] expecteds, short[] actuals)
          Asserts that Object[] (presumably an Short[]) is equal to a short[].
static void assertEquals(String message, Object expected, Object actual)
          Asserts that two objects are equal.
static void assertEquals(String message, short[] expecteds, Object[] actuals)
          Asserts that a short[] is equal to an Object[] (presumably an Short[])
static void assertEquals(String message, short[] expecteds, short[] actuals)
          Asserts that two short[] are equal.
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertEquals

public static void assertEquals(boolean[] expecteds,
                                boolean[] actuals)
Asserts that two boolean[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(boolean[] expecteds,
                                Object[] actuals)
Asserts that a boolean[] is equal to an Object[] (presumably an Boolean[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(byte[] expecteds,
                                byte[] actuals)
Asserts that two byte[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(byte[] expecteds,
                                Object[] actuals)
Asserts that a byte[] is equal to an Object[] (presumably an Byte[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(char[] expecteds,
                                char[] actuals)
Asserts that two char[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(char[] expecteds,
                                Object[] actuals)
Asserts that a char[] is equal to an Object[] (presumably an Character[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(double[] expecteds,
                                double[] actuals)
Asserts that two double[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(double[] expecteds,
                                Object[] actuals)
Asserts that a double[] is equal to an Object[] (presumably an Double[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(float[] expecteds,
                                float[] actuals)
Asserts that two float[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(float[] expecteds,
                                Object[] actuals)
Asserts that a float[] is equal to an Object[] (presumably an Float[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(int[] expecteds,
                                int[] actuals)
Asserts that two int[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(int[] expecteds,
                                Object[] actuals)
Asserts that a int[] is equal to an Object[] (presumably an Integer[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(List expecteds,
                                List actuals)
Asserts that two Lists are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(long[] expecteds,
                                long[] actuals)
Asserts that two long[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(long[] expecteds,
                                Object[] actuals)
Asserts that a long[] is equal to an Object[] (presumably an Long[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object expected,
                                Object actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                boolean[] actuals)
Asserts that Object[] (presumably an Boolean[]) is equal to an boolean[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                byte[] actuals)
Asserts that Object[] (presumably an Byte[]) is equal to an byte[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                char[] actuals)
Asserts that Object[] (presumably an Character[]) is equal to an char[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                double[] actuals)
Asserts that Object[] (presumably an Double[]) is equal to an double[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                float[] actuals)
Asserts that Object[] (presumably an Float[]) is equal to an float[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                int[] actuals)
Asserts that Object[] (presumably an Integer[]) is equal to an int[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                long[] actuals)
Asserts that Object[] (presumably an Long[]) is equal to an long[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                Object[] actuals)
Asserts that two Object[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(Object[] expecteds,
                                short[] actuals)
Asserts that Object[] (presumably an Short[]) is equal to an short[].

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(short[] expecteds,
                                Object[] actuals)
Asserts that a short[] is equal to an Object[] (presumably an Short[])

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(short[] expecteds,
                                short[] actuals)
Asserts that two short[] are equal.

Parameters:
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                boolean[] expecteds,
                                boolean[] actuals)
Asserts that two boolean[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                boolean[] expecteds,
                                Object[] actuals)
Asserts that a boolean[] is equal to an Object[] (presumably an Boolean[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                byte[] expecteds,
                                byte[] actuals)
Asserts that two byte[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                byte[] expecteds,
                                Object[] actuals)
Asserts that a byte[] is equal to an Object[] (presumably an Byte[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                char[] expecteds,
                                char[] actuals)
Asserts that two char[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                char[] expecteds,
                                Object[] actuals)
Asserts that a char[] is equal to an Object[] (presumably an Character[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                double[] expecteds,
                                double[] actuals)
Asserts that two double[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                double[] expecteds,
                                Object[] actuals)
Asserts that a double[] is equal to an Object[] (presumably an Double[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                float[] expecteds,
                                float[] actuals)
Asserts that two float[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                float[] expecteds,
                                Object[] actuals)
Asserts that a float[] is equal to an Object[] (presumably an Float[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                int[] expecteds,
                                int[] actuals)
Asserts that two int[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                int[] expecteds,
                                Object[] actuals)
Asserts that a int[] is equal to an Object[] (presumably an Integer[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                List expecteds,
                                List actuals)
Asserts that two Lists are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                long[] expecteds,
                                long[] actuals)
Asserts that two long[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                long[] expecteds,
                                Object[] actuals)
Asserts that a long[] is equal to an Object[] (presumably an Long[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object expected,
                                Object actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message. *

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                boolean[] actuals)
Asserts that Object[] (presumably an Boolean[]) is equal to an boolean[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                byte[] actuals)
Asserts that Object[] (presumably an Byte[]) is equal to an byte[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                char[] actuals)
Asserts that Object[] (presumably an Character[]) is equal to an char[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                double[] actuals)
Asserts that Object[] (presumably an Double[]) is equal to an double[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                float[] actuals)
Asserts that Object[] (presumably an Float[]) is equal to an float[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                int[] actuals)
Asserts that Object[] (presumably an Integer[]) is equal to an int[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                long[] actuals)
Asserts that Object[] (presumably an Long[]) is equal to an long[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                Object[] actuals)
Asserts that two Object[] are equal.

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                Object[] expecteds,
                                short[] actuals)
Asserts that Object[] (presumably an Short[]) is equal to a short[].

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                short[] expecteds,
                                Object[] actuals)
Asserts that a short[] is equal to an Object[] (presumably an Short[])

Parameters:
message -
expecteds -
actuals -

assertEquals

public static void assertEquals(String message,
                                short[] expecteds,
                                short[] actuals)
Asserts that two short[] are equal.

Parameters:
message -
expecteds -
actuals -


Copyright © 2006-2008. All Rights Reserved.