@@ -0,0 +1,1379 @@
+package ru.job4j.calculator;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A *Class Test.%0A *@author fomichenkoav%0A *@since 20.04.2017%0A *@version $Id$%0A */%0Apublic  class CalculatorTest %7B%0A    /**%0A     *Test add.%0A     */%0A    @Test%0A    public void whenAddOnePlusOneThenTwo() %7B%0A        Calculator calc = new Calculator();%0A        calc.add(1D, 1D);%0A        double result = calc.getResult();%0A        double expected = 2D;%0A        assertThat(result, is(expected));%0A    %7D%0A%09/**%0A     *Test subtract.%0A     */%0A    @Test%0A    public void whenAddTwoDeductOneThenOne() %7B%0A        Calculator calc = new Calculator();%0A        calc.subtract(2D, 1D);%0A        double result = calc.getResult();%0A        double expected = 1D;%0A        assertThat(result, is(expected));%0A    %7D%0A%09/**%0A     *Test div.%0A     */%0A    @Test%0A    public void whenAddTwoDivideTwoThenOne() %7B%0A        Calculator calc = new Calculator();%0A        calc.div(2D, 2D);%0A        double result = calc.getResult();%0A        double expected = 1D;%0A        assertThat(result, is(expected));%0A    %7D%0A%09/**%0A     *Test multiple.%0A     */%0A    @Test%0A    public void whenAddTwoMultiplyTwoThenFour() %7B%0A        Calculator calc = new Calculator();%0A        calc.multiple(2D, 2D);%0A        double result = calc.getResult();%0A        double expected = 4D;%0A        assertThat(result, is(expected));%0A    %7D%0A%0A%0A%7D

task 187