package ru.nivanov;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;

public class MaxSideTest {
	
	@Test
	public void whenCalculateMaxThenReturnMaxOk() {
	  
	  MaxSide abc = new MaxSide (new Point (2.0,1.0),new Point (-1.0,-3.0),new Point (-1.0,1.0));
	  double result = abc.MaxChoose ();
	  assertThat(result, is (5.0d));	
	
	}


}
@@ -111,16 +111,17 @@
 ert.*;%0A%0A
+%0A
 public c
@@ -202,22 +202,16 @@
  %7B%0A%09
-  %0A%09  
 MaxSide 
 abc 
@@ -210,14 +210,17 @@
 ide 
-abc = 
+longSide=
 new 
@@ -226,16 +226,60 @@
  MaxSide
+();%0A    double testside = longSide.maxChoose
  (new Po
@@ -281,17 +281,16 @@
 ew Point
- 
 (2.0,1.0
@@ -287,24 +287,25 @@
 nt(2.0,1.0),
+ 
 new Point (-
@@ -314,16 +314,17 @@
 0,-3.0),
+ 
 new Poin
@@ -320,25 +320,24 @@
 ), new Point
- 
 (-1.0,1.0));
@@ -342,47 +342,8 @@
 );%0A%09
-  double result = abc.MaxChoose ();%0A%09  
 asse
@@ -353,14 +353,16 @@
 hat(
-result
+testside
 , is
@@ -370,18 +370,19 @@
 (5.0d));
-%09%0A
+ %09 
 %09%0A%09%7D%0A%0A%0A%7D

change MaxSideTest