![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
junit
魔锋剑上缺
这个作者很懒,什么都没留下…
展开
-
junit所需jar包
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> <原创 2018-05-31 17:55:09 · 6122 阅读 · 0 评论 -
junit 参数化测试
在测试类上面加上注解@RunWith(Parameterized.class)@PrepareForTest(BuildIncidentCfgServiceImpl.class)根据测试类的构造函数准备好各种参数@Parameters public static Collection data() { return Arrays.asList(new Object[][...原创 2018-05-31 18:02:06 · 510 阅读 · 0 评论