package ru.job4j;

import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
	Test.

	@author DmitriyBystranov (mailto: dbystranov@mail.ru)
	@version $id$
	@since 22.05.2017
*/
public class CalculateTest {
	/**
		Test add.
	*/
	@Test

	public void whenAddOneToOneThenTwo() {
		ByteArrayOutputStream out  = new ByteArrayOutputStream();
		System.setOut(new PrintStream(out));
		Calculate.main(null);
		assertThat(out.toString(), is(String.format("Hello world!", System.getProperty("Line.separator"))));
	}
}

@@ -595,9 +595,9 @@
 ty(%22
-L
+l
 ine.

add #4122