package ru.sbulygin;

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

/**
* Test.
*
* @author Sergey Bulygin (sergteletrade@gmail.com).
* @version 1.0.
* @since 18.11.2016.
*/
public class MaxTest {

    /**
    * Тест для класса Max.
    *
    * Тест метода max при равных значениях.
    */
    @Test
    public void whenFirstEqualSecondThenNull() {
        final Max value = new Max();
        final int result = value.max(10, 10);
        assertThat(result, is(0));
    }

    /**
    * Тест для класса Max.
    *
    * Тест метода max .
    */
    @Test
    public void whenFirstComparSecondThenTen() {
        final Max value = new Max();
        final int result = value.max(10, 5);
        final int expectResult = 10;
        assertThat(result, is(expectResult));
    }
 }
@@ -828,11 +828,655 @@
 );%0A    %7D
+%0A%0A    /**%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%B4%D0%BB%D1%8F %D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0 Max.%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 max .%0A    */%0A    @Test%0A    public void whenFirstComparSecondComparThirdThenTen() %7B%0A        final Max value = new Max();%0A        final int result = value.maxThree(10, 5, 8);%0A        final int expectResult = 10;%0A        assertThat(result, is(expectResult));%0A    %7D%0A%0A    /**%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%B4%D0%BB%D1%8F %D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0 Max.%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 max .%0A    */%0A    @Test%0A    public void whenFirstEqualSecondEqualThirdThenNull() %7B%0A        final Max value = new Max();%0A        final int result = value.maxThree(10, 10, 10);%0A        final int expectResult = 0;%0A        assertThat(result, is(expectResult));%0A    %7D
 %0A %7D

add MaxTest