Java Reference
In-Depth Information
From version 4.6 on of the JU nit framework, you can use a convenient new method
for testing the equality of two arrays of doubles:
assertArrayEquals(double[]first ,double[] second, double delta);
This compares every element of the first element with the corresponding element of
the second array using the given delta.
A.5.4
Assertion errors
When you test with the 3.x version of JU nit, and any part of your assert is wrong, you
get a junit.framework.AssertionFailedError message. With the new version of
JU nit, that's no longer true, and in case of wrong assertions you see the java.lang.
AssertionError message. The java.lang.AssertionError class was introduced in
JDK 1.4.
 
 
Search WWH ::




Custom Search