|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.util.RegressionTesting
Tools to help make regression testing easier.
Copyright (c) 2004 Columbia University
| Method Summary | |
static boolean |
closeEnough(AbstractNamedDoubleMatrix a,
AbstractNamedDoubleMatrix b,
double tolerance)
Test whether two AbstractNamedDoubleMatrix are 'close enough' to call equal. |
static boolean |
closeEnough(cern.colt.list.DoubleArrayList a,
cern.colt.list.DoubleArrayList b,
double tolerance)
Test whether two DoubleArrayLists are 'close enough' to call equal. |
static boolean |
closeEnough(cern.colt.matrix.DoubleMatrix2D a,
cern.colt.matrix.DoubleMatrix2D b,
double tolerance)
|
static boolean |
closeEnough(java.lang.Object[] a,
java.lang.Object[] b)
Test whether two object arrays are the same. |
static boolean |
containsSame(java.util.Collection a,
java.util.Collection b)
Test whether two collections contain the same items. |
static boolean |
containsSame(double[] a,
double[] b)
Test whether two double arrays contain the same items in any order (tolerance is ZERO) |
static boolean |
containsSame(java.lang.Object[] a,
java.lang.Object[] b)
Test whether two object arrays contain the same items. |
static java.lang.String |
readTestResult(java.io.InputStream istream)
|
static java.lang.String |
readTestResult(java.lang.String resourceName)
|
static java.lang.String |
readTestResultFromFile(java.lang.String fileName)
|
static void |
writeTestResult(java.lang.String result,
java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void writeTestResult(java.lang.String result,
java.lang.String fileName)
throws java.io.IOException
java.io.IOException
public static java.lang.String readTestResult(java.io.InputStream istream)
throws java.io.IOException
istream -
java.io.IOException
public static java.lang.String readTestResult(java.lang.String resourceName)
throws java.io.IOException
resourceName -
java.io.IOException
public static java.lang.String readTestResultFromFile(java.lang.String fileName)
throws java.io.IOException
fileName - - the full path of the file to be read.
java.io.IOException
public static boolean closeEnough(cern.colt.list.DoubleArrayList a,
cern.colt.list.DoubleArrayList b,
double tolerance)
a - b - tolerance -
public static boolean closeEnough(AbstractNamedDoubleMatrix a,
AbstractNamedDoubleMatrix b,
double tolerance)
a - b - tolerance -
public static boolean closeEnough(cern.colt.matrix.DoubleMatrix2D a,
cern.colt.matrix.DoubleMatrix2D b,
double tolerance)
public static boolean closeEnough(java.lang.Object[] a,
java.lang.Object[] b)
a - b -
public static boolean containsSame(java.util.Collection a,
java.util.Collection b)
a - b -
public static boolean containsSame(java.lang.Object[] a,
java.lang.Object[] b)
a - b -
public static boolean containsSame(double[] a,
double[] b)
a - b -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||