@@ -0,0 +1,1269 @@
+package ru.job4j;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**.%0A * CalculatorTest.%0A *%0A * @author Anton Vasilyuk (wrajina99@gmail.com)%0A * @version $Id$%0A * @since 0.1%0A */%0A%0A public class CalculatorTest %7B%0A%0A%09/**.%0A%09* %D0%A2%D0%B5%D1%81%D1%82 %D1%81%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F%0A%09* @param first%0A%09* @param second%0A%09*/%0A%09@Test%0A%09public void testWhenAddOneToOneThenTwo() %7B%0A%09%09Calculator calc = new Calculator();%0A%09%09calc.add(1, 1);%0A%09%09final double result = calc.getResult();%0A%09%09assertThat(result, is(2d));%0A%0A%09%7D%0A%0A%09/**.%0A%09* %D0%A2%D0%B5%D1%81%D1%82 %D0%92%D1%8B%D1%87%D0%B8%D1%82%D0%B0%D0%BD%D0%B8%D0%B5%0A%09* @param first%0A%09* @param second%0A%09*/%0A%09@Test%0A%09public void testWhenSubstructOneToOneThenZero() %7B%0A%09%09Calculator calc = new Calculator();%0A%09%09calc.substruct(2, 1);%0A%09%09final double result = calc.getResult();%0A%09%09assertThat(result, is(1d));%0A%0A%09%7D%0A%0A%09/**.%0A%09* %D0%A2%D0%B5%D1%81%D1%82 %D0%94%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5%0A%09* @param first%0A%09* @param second%0A%09*/%0A%09@Test%0A%09public void testWhenDifOneToOneThenOne() %7B%0A%09%09Calculator calc = new Calculator();%0A%09%09calc.dif(1, 1);%0A%09%09final double result = calc.getResult();%0A%09%09assertThat(result, is(1d));%0A%0A%09%7D%0A%0A%09/**.%0A%09* %D0%A2%D0%B5%D1%81%D1%82 %D0%A3%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%0A%09* @param first%0A%09* @param second%0A%09*/%0A%09@Test%0A%09public void testWhenMultipleOneToOneThenOne() %7B%0A%09%09Calculator calc = new Calculator();%0A%09%09calc.multiple(1, 1);%0A%09%09final double result = calc.getResult();%0A%09%09assertThat(result, is(1d));%0A%0A%09%7D%0A%0A%7D

add Test for Calculator.java