junit4报测试类class not found
项目中编写测试类,运行Run As —> Junit Test,会报错class not found。
class not found肯定是没有编译成功。project—>clean—>重新编译,还是报错。其实要运行Junit必须在target/test-classes找到编译类。
解决方法:
在pom.xml文件中,Run As —> maven test,会发现targ...
原创
2018-12-05 09:12:34 ·
6865 阅读 ·
0 评论