package ru.pravvich;

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

public class MaximumTest {
    @Test
    public void whenSideTriangleComparedThenReturnTheBiggest() {
        Point a = new Point(0,0);
        Point b = new Point(0,3);
        Point c = new Point(4,0);

        Maximum maximum = new Maximum();
        String result = maximum.detectionBiggestSideTriangle(a, b, c);
        assertThat(result, is("Сторона между точками B и С самая большая."));
    }
}
package ru.pravvich;

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

public class MaximumTest {
    @Test
    public void whenSideTriangleComparedThenReturnTheBiggest() {
        Point a = new Point(0,0);
        Point b = new Point(3,2);
        Point c = new Point(4,0);

        Maximum maximum = new Maximum();
        double result = maximum.detectionBiggestSideTriangle(a, b, c);
        assertThat(result, is(4d));
    }
}
add chapter_001/lesson_3/src/test/java/ru/pravvich/MaximumTest.java