您的位置:首页 > 运维架构

Shallow talk about the popular test coverage tool

2011-04-17 10:37 330 查看
the incompalibility between powermok and emma

can not co-exist the mock object with java reflect

Emma is inactive project, which has not been upgrade the version since 2006
cobertura is nice,  sonar has the more pwoerful presentation ability by providing the chart & diagram according to the various perspectives.

powermock's runwith annotation can be adapted in both method and class scope.

be careful to design your target class, providde the setter method to make possible for the mock object injection
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  object setter class java