使用Junit测试时遇到的问题 - - ITeye技术网站
2010年12月27日 - 使用Junit测试时遇到的问题 junitMyeclipseSpringXML 1. 使用自己的spring2和JUnit4.6.jar时,报错为"no tests found with test runner 'JUnit 3'"解...
如何在JUnit中测试异常_百度知道
最佳答案: 对需要测试异常的代码使用try,catch语句块。比如: public void testException(){try{Long.parseLong(null); } catch(NumberFormatException expected){}}...更多关于Junit测试问题的问题>>