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 mklimentiev
 * version 1.0
 * since 29.01.2017
 */
 
public class CalculateTest {
	/**
	 * Test add.
	 */
	@Test
	public void whenExecuteMainThenPrintToConsole() {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		System.setOut(new PrintStream(out));
		Calculate.main(null);
		assertThat(out.toString(), is("Hello World\r\n"));
	}
}





@@ -263,10 +263,8 @@
  */%0A
- %0A
 publ

change CalculateTest.java