There is no ASSERTEQUALS (Double, Double) method in JUnit. Because the Double value is allowed. So implement Double's assertions to use Assertequals (Double, Double, Double). The third parameter is the allowable error.