@@ -0,0 +1,321 @@
+package andycpp;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class TestCalculator %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %0A%09%7B%0A%09%09Calculator cal = new Calculator();%0A%09%09int result = cal.add(1, 2);%0A%09%09%0A%09%09assertTrue(result==3);%0A%09%09%0A%09%7D%0A%0A%7D%0A

add test