- 授权协议: Apache
- 开发语言: HTML/CSS
- 操作系统: 跨平台
- 软件首页: http://pragmatists.github.io/JUnitParams/
- 软件文档: https://github.com/Pragmatists/JUnitParams/wiki/Quickstart
软件介绍
JUnitParams 为 JUnit >=4.6 增加了一个更容易使用的可读性更好的参数测试方式
Example
@RunWith(JUnitParamsRunner.class)
public class PersonTest {
@Test
@Parameters({"17, false",
"22, true" })
public void personIsAdult(int age, boolean valid) throws Exception {
assertThat(new Person(age).isAdult(), is(valid));
}
}See more examples 。
