Cobertura : how to cover spring-data @Repository interfaces

爷,独闯天下 提交于 2019-12-04 03:51:13

If I understand correctly, an interface cannot be covered. Interfaces are just to define the contract, and contains no "runtime" commands. And code coverage tools only measure the lines that is reachable from the running tests. Say it other way, only field declaration, constructor or method body can be covered.

An exception may be Java8 interfaces that contains some default methods.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!