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.*;


public class CalculateTest {
    /**
    *Test add.
    */
    
    @Test
public void whenAddOneToOneThenTwo() { {
       
        String lineSep = System.getProperty("line.separator");
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        System.setOut(new PrintStream(out));
        Calculate.main(null);
        assertThat(out.toString(), is("Hello World" + lineSep));
    }

    
        
    }
    
}
   

@@ -240,20 +240,16 @@
 */%0A    %0A
-    
 @Test%0Apu
@@ -285,17 +285,26 @@
 Two() %7B 
-%7B
+%0A    %0A    
 %0A       
@@ -580,26 +580,10 @@
     
-%7D
 %0A%0A
-    %0A        %0A 
    %7D

add calculate.java