Class not found: "MyTest" junit
1. 错误原因
(1) 测试方法要求不能有返回值,
(2) 方法必须是public的
(3) 还有可能是没有编译,,,,在test-classes中没有被编译的测试类

解决方案:

使用testCompile单独编译测试类
1. 错误原因
(1) 测试方法要求不能有返回值,
(2) 方法必须是public的
(3) 还有可能是没有编译,,,,在test-classes中没有被编译的测试类

解决方案:

使用testCompile单独编译测试类