alltests.java
来自「hibernate and xdoclet 结合」· Java 代码 · 共 37 行
JAVA
37 行
package dao.hibernate;
import junit.framework.Test;
import junit.framework.TestSuite;
import junit.framework.TestCase;
/**
* Run all the unit tests
*/
public class AllTests {
/**
* Start the tests.
*
* @param args the arguments. Not used
*/
public static void main(String args[]) {
junit.textui.TestRunner.run(suite());
}
/**
* @return a test suite (<code>TestSuite</code>) that includes all methods
* starting with "test"
*/
public static Test suite() {
TestSuite suite = new TestSuite();
// add the AllTests for the sub-package
//suite.addTest(org.cinc.stock.file.AllTests.suite());
// add all the test classes in the current package
suite.addTestSuite(CompanyDAOHibernateTest.class);
suite.addTestSuite(ProvinceDAOHibernateTest.class);
return suite;
}
}//EOC
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?