@@ -0,0 +1,525 @@
+package ru.ematveev.point;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0A%0Apublic class PointTest%7B%0A%0A%09@Test%0A%09public void distanceToTest()%7B%0A%0A%09%09Point a = new Point(5, 2);%0A%09%09Point b = new Point(5, 8);%0A%09%09double result = a.distanceTo(b);%0A%09%09assertThat(result, is(6d));%0A%09%7D%0A%0A%09@Test%0A%09public void areaTest()%7B%0A%0A%09%09%09Point a = new Point(4, 2);%0A%09%09%09Point b = new Point(5, 8);%0A%09%09%09Point c = new Point(3, 6);%0A%09%09%09double result = new Triangle(a, b, c).area();%0A%09%09%09assertThat(result, is(5d));%0A%09%7D%0A%7D%0A%0A

add file PointTest.java