package Main;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class Main {
public static void main(String[] args) {
}
@Test
public void testJunit()
{
System.out.println("hello junit");
}
@Before
public void testBefore()
{
System.out.println("Before!");
}
@After
public void testAfter()
{
System.out.println("After!");
}
}
运行结果: