Class not found: "MyTest" junit

1. 错误原因

(1)  测试方法要求不能有返回值,

(2) 方法必须是public的

(3) 还有可能是没有编译,,,,在test-classes中没有被编译的测试类

解决方案:

 使用testCompile单独编译测试类 

posted @ 2021-09-24 01:16  木有呂朋友  阅读(1099)  评论(0)    收藏  举报