对impl单元测试忽略的几点

写好了impl类我就直接generator出了接口的所有类,但有几点要注意,它自动生成的类
1.@Test注解 要改为import org.junit.Test; 不然会引发junit vintage 错误No runnable methods
2.要给方法前面加上public

发布了34 篇原创文章 · 获赞 0 · 访问量 622

猜你喜欢

转载自blog.csdn.net/weixin_44841849/article/details/104311729