package ru.alexandr;

import org.junit.Test;
import static org.hamcrest.number.IsCloseTo.closeTo;
/**.
 * Triangle Test.
 * @author Alexander Golubev.
 * since 05.12.2016.
 */
 public class TriangleTest {
	/**.
	* Triangle test.
	*/
	@Test
    public void whenAreaThenRithArea() {
		Point a = new Point(1, 2);
		Point b = new Point(2, 2);
		Point c = new Point(2, 1);
		Triangle triangle = new Triangle(a, b, c);
		double result = triangle.area();
		assertThat(result, closeTo(0, 0.5));
    }
 }
@@ -69,32 +69,61 @@
 est.
-number.IsCloseTo.closeTo
+core.Is.is;%0Aimport static org.junit.Assert.assertThat
 ;%0A/*
@@ -309,170 +309,246 @@
 %7B%0A%09%09
-Po
+final 
 int 
-a = new Point(1,
+x1 = 1;%0A%09%09final int y1 =
  2
-)
 ;%0A%09%09
-Po
+final 
 int 
-b = new Point(2,
+x2 = 2;%0A%09%09final int y2 =
  2
-)
 ;%0A%09%09
-Po
+final 
 int 
-c = new Point(2, 1);%0A%09%09Triangle triangle = new Triangle(a, b, c);%0A%09%09double result = triangle.area(
+x3 = 2;%0A%09%09final int y3 = 1;%0A%09%09final double result = 0.49;%0A%09%09Triangle triangle = new Triangle(new Point(x1, y1), new Point(x2, y2), new Point(x3, y3)
 );%0A%09
@@ -571,22 +571,17 @@
 lt, 
-closeTo(0, 0.5
+is(result
 ));%0A
@@ -586,10 +586,9 @@
 ;%0A    %7D%0A
- 
 %7D

add TriangleTest.java