好的,我应该搜索得更好。
Junit 3中的班级拆解?
public static Test suite() { return new TestSetup(new TestSuite(YourTestClass.class)) { protected void setUp() throws Exception { System.out.println(" Global setUp "); } protected void tearDown() throws Exception { System.out.println(" Global tearDown "); } };}


