JUnit

Exception:no test found matching

原因:仅仅导入了junit包,未导入hamcrest-core-1.3.jar包。

使用JUnit需注意:

@Test不可以测试Static修饰的方法,不可测试private修饰的方法

 

posted on 2019-06-17 09:08  kongieg  阅读(139)  评论(0编辑  收藏  举报