@@ -0,0 +1,1339 @@
+package ru.sbulygin;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A* Test.%0A*%0A* @author Sergey Bulygin (sergteletrade@gmail.com).%0A* @version 1.0.%0A* @since 13.11.2016.%0A*/%0Apublic class CalculatorTest %7B%0A    /**%0A    * Test add.%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 add.%0A    */%0A    @Test%0A    public void whenAddFirstToSecondThenResultTwo() %7B%0A      Calculator cal = new Calculator();%0A      cal.add(1d, 1d);%0A      double result = cal.getResult();%0A      assertThat(result, is(2d));%0A  %7D%0A%0A    /**%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 sabtract.%0A    *%0A    */%0A    @Test%0A    public void whenSubtractFirstFromSecondThenResultOne() %7B%0A      Calculator cal = new Calculator();%0A      cal.subtract(2d, 1d);%0A      double result = cal.getResult();%0A      assertThat(result, is(1d));%0A  %7D%0A%0A  /**%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 multiply.%0A    *%0A    */%0A    @Test%0A    public void whenMultiplyTheFirstToTheSecondThenResultTwo() %7B%0A      Calculator cal = new Calculator();%0A      cal.multiply(2d, 1d);%0A      double result = cal.getResult();%0A      assertThat(result, is(2d));%0A  %7D%0A%0A  /**%0A    *%0A    * %D0%A2%D0%B5%D1%81%D1%82 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 div.%0A    *%0A    */%0A    @Test%0A    public void whenDivTheFirstToTheSecondThenResultTwo() %7B%0A      Calculator cal = new Calculator();%0A      cal.div(2d, 1d);%0A      double result = cal.getResult();%0A      assertThat(result, is(2d));%0A  %7D%0A %7D

add CalculatorTest.java