The

assertEquals(double,double)

static boolean assertEquals(double d1, double d2) { return Math.abs(d1 - d2) < 1e-8; }

Yes, use assertEquals(double expected, double actual, double delta) instead.

assertEquals(double expected, double actual, double delta)