@@ -0,0 +1,830 @@
+package by.vorokhobko.3_conditional_operator;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.number.IsCloseTo.closeTo;%0Aimport org.junit.Test;%0A%0A/**%0A * PointTest.%0A *%0A * Class PointTest for testing class Point.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 04.12.2016.%0A * @version 1.%0A */%0A%0Apublic class PointTest %7B%0A%09  /**%0A%09  * @Test.%0A%09  * Point test.%0A%09  */%0A%09%09@Test%0A%09public void testDeterminingTheDistanceBetweenTwoPoints() %7B%0A%09%09final double x = 2;%0A%09%09final double y = 4;%0A%09%09final double totalNumber = 4.472;%0A%09%09final double numberExeption = 0.01;%0A%09%09Point pointBegun = new Point(x, y);%0A%09%09Point pointEnd = new Point(x + x, y + y);%0A%09%09double resultBE = pointBegun.distanceTo(pointEnd);%0A%09%09assertThat(resultBE, is(closeTo(totalNumber, numberExeption)));%0A%09%09%7D%0A%09%7D

Test class Point