junit, hamcrest , eclemma使用

安装:

  从官网下载junit-4.12.jar和hamcrest-all-1.3.jar包,放入工程中的lib目录,然后buildpath添加到工程中。对于Eclemma,则在eclipse市场中搜索出插件直接安装即可。

使用:

  编写测试程序,并使用参数化方法传入测试用例,点击Eclemma的运行按钮运行即可。

    

运行结果:

    

    

posted @ 2016-05-08 23:23  Gufor  阅读(164)  评论(0)    收藏  举报