@@ -0,0 +1,546 @@
+package ru.job4j;%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 Alexander Erokhov (qsok3d@gmail.com)%0A*@version $Id$%0A*@snipe 0.1%0A*/%0A%0Apublic class CalculateTest%7B%0A/**%0A*Test add.%0A*/%0A%0A@Test%0Apublic void whenAddOneToOneThenTwo()%7B%0A%09ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%09System.setOut(new PrintStream(out));%0A%09Calculate.main(null);%0A%09assertThat(out.toString(), is(%22Hello World%5Cr%5Cn%22));%0A%7D%0A%7D%0A

add test