本文共 295 字,大约阅读时间需要 1 分钟。
Hamcrest是一个编写matcher对象的类库,matcher对象可用于构建测试表达式。
1.官方链接
http://hamcrest.org/ https://code.google.com/archive/p/hamcrest/ https://github.com/hamcrest/JavaHamcrest2.最新版本是2015年2月发布的2.0.0
3.Maven项目中的用法: 1.pom.xml org.hamcrest hamcrest-all 2.0.0 2.测试用例代码中assertThat(..., Matchers.*..*())
详情请参考相关博文“”。
转载地址:http://stlai.baihongyu.com/