@@ -0,0 +1,575 @@
+package ru.osetsky;%0A%0Aimport org.junit.Test;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * Test.%0A *%0A * @author Alexey Osetsky (alexeyosetsky@gmail.ru)%0A * @version $Id$%0A * @since 0.1%0A */%0A public class CalculatorTest %7B%0A%09/**%0A%09* Test add.%0A%09*/%0A%09@Test%0A%09public void whenExexuteMainThenPrintToConsole() %7B%0A%09%09ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%09%09System.setOut(new PrintStream(out));%0A%09%09Calculate.main(null);%0A%09%09assertThat(out.toString(), is(result));%0A%09%7D%0A %7D

Add CalculatorTest