isql.test
Class JUnitMatrices

java.lang.Object
  extended by isql.test.JUnitMatrices

public class JUnitMatrices
extends java.lang.Object

JUnit as it is does not have support for vectors and matrices. This class adds it

Author:
SHZ Nov 8, 2007

Constructor Summary
JUnitMatrices()
           
 
Method Summary
static void assertEquals(boolean[][] a, boolean[][] b)
          Checks if two matrices of booleans are equal Throws AssertionError with the index of the failed item if not
static void assertEquals(boolean[] a, boolean[] b)
          Checks if two vectors of booleans are equal Throws AssertionError with the index of the failed item if not
static void assertEquals(double[][] a, double[][] b)
          Checks if two matrices of doubles are equal Throws AssertionError with the index of the failed item if not
static void assertEquals(double[][] a, double[][] b, double delta)
          Checks if two matrices of doubles are equal, concerning a certain delta
static void assertEquals(double[] a, double[] b)
          Checks if two vectors of doubles are equal Throws AssertionError with the index of the failed item if not
static void assertEquals(double[] a, double[] b, double delta)
          Checks if two vectors of doubles are equal concerning a certain delta Throws AssertionError with the index of the failed item if not
static void assertEquals(java.lang.Object[][] a, java.lang.Object[][] b)
          Checks if two matrices of objects are equal Throws AssertionError with the index of the failed item if not
static void assertEquals(java.lang.Object[] a, java.lang.Object[] b)
          Checks if two vectors of objects (String, Date, ...) are equal Throws AssertionFailedError with the index of the failed item if not
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitMatrices

public JUnitMatrices()
Method Detail

assertEquals

public static void assertEquals(java.lang.Object[] a,
                                java.lang.Object[] b)
Checks if two vectors of objects (String, Date, ...) are equal Throws AssertionFailedError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(double[] a,
                                double[] b)
Checks if two vectors of doubles are equal Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(double[] a,
                                double[] b,
                                double delta)
Checks if two vectors of doubles are equal concerning a certain delta Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(boolean[] a,
                                boolean[] b)
Checks if two vectors of booleans are equal Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(java.lang.Object[][] a,
                                java.lang.Object[][] b)
Checks if two matrices of objects are equal Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(double[][] a,
                                double[][] b)
Checks if two matrices of doubles are equal Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -

assertEquals

public static void assertEquals(double[][] a,
                                double[][] b,
                                double delta)
Checks if two matrices of doubles are equal, concerning a certain delta

Parameters:
a -
b -
delta -

assertEquals

public static void assertEquals(boolean[][] a,
                                boolean[][] b)
Checks if two matrices of booleans are equal Throws AssertionError with the index of the failed item if not

Parameters:
a -
b -