????before??after???
??????before???????????????????????????У???after??????????????????????к???С?
?????????д???2?????????
package choon.test;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class Test1 {
@Before
public void setUp() {
System.out.println("---begin test---");
}
@Test
public void test() {
Calculate calculate = new Calculate();
assertEquals(8?? calculate.Add(3?? 5));
System.out.println("test case");
}
@After
public void tearDown() {
System.out.println("---end test---");
}
}
????????????????н????

???????????????д??????????????????????????????????????????????????????????????????????????е??????????????鷳??