@@ -0,0 +1,1561 @@
+package ru.alexandr;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**...%0A * Calculate Test.%0A * @author Alexander Golubev.%0A * since 30.11.2016.%0A */%0A%0A public class CalculatorTest %7B%0A%09/**.%0A%09* Test add.%0A%09*/%0A%09@Test%0A    public void whenAddTwoAndTwoThenFour() %7B%0A%09%09final Calculator calc = new Calculator();%0A%09%09final double answer = 4d;%0A%09%09final double first = 2d;%0A%09%09final double second = 2d;%0A%09%09calc.add(first, second);%0A%09%09final double result = calc.getResult();%0A        assertThat(result, is(answer));%0A    %7D%0A%09/**...%0A%09* Test substract.%0A%09*/%0A%09@Test%0A    public void whenSubstractTwoAndOneThenOne() %7B%0A        final Calculator calc = new Calculator();%0A%09%09final double answer = 1d;%0A%09%09final double first = 2d;%0A%09%09final double second = 1d;%0A%09%09calc.substract(first, second);%0A%09%09final double result = calc.getResult();%0A        assertThat(result, is(answer));%0A    %7D%0A%09/**...%0A%09* Test multiple.%0A%09*/%0A%09@Test%0A    public void whenMultipleThreeAndTwoThenSix() %7B%0A%09%09final Calculator calc = new Calculator();%0A%09%09final double answer = 6d;%0A%09%09final double first = 3d;%0A%09%09final double second = 2d;%0A%09%09calc.multiple(first, second);%0A%09%09final double result = calc.getResult();%0A        assertThat(result, is(answer));%0A    %7D%0A%09/**...%0A%09* Test divide.%0A%09*/%0A%09@Test%0A    public void whenDivisionSixAndThreeThenTwo() %7B%0A%09%09final Calculator calc = new Calculator();%0A%09%09final double answer = 2d;%0A%09%09final double first = 6d;%0A%09%09final double second = 3d;%0A%09%09calc.div(first, second);%0A%09%09final double result = calc.getResult();%0A        assertThat(result, is(answer));%0A%09%7D%0A%7D

add structure