@ContinuousIntegrationTest(estimatedDuration = 0.0) @Test(timeout = 30000) public void testAssertPoint3fEquals() { final int ITERATIONS = 1000; final float EPSILON = 0.000001f; Random random1 = new Random(4271L); Random random2 = new Random(4271L); for (int i = 0; i < ITERATIONS; i++) { Point3f point1 = new Point3f(randomFloatArray(random1, 3)); Point3f point2 = new Point3f(randomFloatArray(random2, 3)); JUnitTools.assertTuple3fEquals(point1, point2, EPSILON); JUnitTools.assertTuple3fEquals("testAssertPoint3fEquals", point1, point2, EPSILON); JUnitTools.assertPoint3fEquals("testAssertPoint3fEquals", point1, point2, EPSILON); } }
@ContinuousIntegrationTest(estimatedDuration = 0.0) @Test(timeout = 30000) public void testAssertVector3fEquals() { final int ITERATIONS = 1000; final float EPSILON = 0.000001f; Random random1 = new Random(4281L); Random random2 = new Random(4281L); for (int i = 0; i < ITERATIONS; i++) { Vector3f vector1 = new Vector3f(randomFloatArray(random1, 3)); Vector3f vector2 = new Vector3f(randomFloatArray(random2, 3)); JUnitTools.assertTuple3fEquals(vector1, vector2, EPSILON); JUnitTools.assertTuple3fEquals("testAssertVector3dEquals", vector1, vector2, EPSILON); JUnitTools.assertVector3fEquals("testAssertVector3dEquals", vector1, vector2, EPSILON); } }