📄 alltests.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -