allinittest.java
来自「junit的入门例子」· Java 代码 · 共 22 行
JAVA
22 行
import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllInitTest {
public static Test suite(){
TestSuite suite=new TestSuite("Test for com.free.com.simple");
suite.addTestSuite(SimpleInitTest.class);
TestSetup wrapper=new TestSetup(suite){
protected void setUp()throws Exception{
System.out.println("suite setup");
}
protected void tearDown()throws Exception{
System.out.println("suite tearDown");
}
};
return wrapper;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?