| java.lang.Object org.apache.commons.math.TestUtils
TestUtils | public class TestUtils (Code) | | version: $Revision: 348888 $ $Date: 2005-11-24 23:21:25 -0700 (Thu, 24 Nov 2005) $ |
Method Summary | |
public static void | assertEquals(double expected, double actual, double delta) | public static void | assertEquals(String msg, double expected, double actual, double delta) Verifies that expected and actual are within delta, or are both NaN or
infinities of the same sign. | public static void | assertEquals(Complex expected, Complex actual, double delta) Verifies that real and imaginary parts of the two complex arguments
differ by at most delta. | public static void | assertEquals(double a, double b, double tolerance) | public static void | assertRelativelyEquals(double expected, double actual, double relativeError) | public static void | assertRelativelyEquals(String msg, double expected, double actual, double relativeError) | public static void | assertSame(double expected, double actual) | public static void | assertSame(Complex expected, Complex actual) Verifies that real and imaginary parts of the two complex arguments
are exactly the same. | public static void | checkSerializedEquality(Object object) | public static Object | serializeAndRecover(Object o) |
assertEquals | public static void assertEquals(double expected, double actual, double delta)(Code) | | |
assertEquals | public static void assertEquals(String msg, double expected, double actual, double delta)(Code) | | Verifies that expected and actual are within delta, or are both NaN or
infinities of the same sign.
|
assertEquals | public static void assertEquals(Complex expected, Complex actual, double delta)(Code) | | Verifies that real and imaginary parts of the two complex arguments
differ by at most delta. Also ensures that NaN / infinite components match.
|
assertEquals | public static void assertEquals(double a, double b, double tolerance)(Code) | | Verifies that two double arrays have equal entries, up to tolerance
|
assertRelativelyEquals | public static void assertRelativelyEquals(double expected, double actual, double relativeError)(Code) | | |
assertRelativelyEquals | public static void assertRelativelyEquals(String msg, double expected, double actual, double relativeError)(Code) | | |
assertSame | public static void assertSame(double expected, double actual)(Code) | | |
assertSame | public static void assertSame(Complex expected, Complex actual)(Code) | | Verifies that real and imaginary parts of the two complex arguments
are exactly the same. Also ensures that NaN / infinite components match.
|
checkSerializedEquality | public static void checkSerializedEquality(Object object)(Code) | | Verifies that serialization preserves equals and hashCode
Parameters: object - |
|
|