import java.util.Date;
import org.junit.*;
public class testBase {
private static Calculator cal;
@BeforeClass
public static void beforeClass(){
System.out.println("BeforeClass");
cal = new Calculator();
}
@Before
public void before1(){
System.out.println(new Date());
}
@Before
public void before2(){
System.out.println("Before 2");
}
@Test
public void test1(){
System.out.println("Test 1");
Assert.assertEquals(2?? cal.add(1?? 1));
}
@Test
public void test2(){
System.out.println("Test 2");
Assert.assertTrue(1 == cal.minus(2?? 1));
}
@Test
@Ignore
public void test3(){
System.out.println("Test 3");
}
@After
public void after1(){
System.out.println(new Date());
}
@After
public void after2(){
System.out.println("After 2");
}
@AfterClass
public static void afterClass(){
System.out.println("AfterClass");
}
}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????