首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 不同的实现在JUnit4提供更好的报告理论转轮

不同的实现在JUnit4提供更好的报告理论转轮

资 源 简 介

MyTheories is a different implementation of the Theories runner in Junit4 which provides better reports. See the following example: ``` @RunWith(MyTheories.class) public class SampleTest { @DataPoint static int a = 1; @DataPoint static int b = 2; @DataPoint static int c = -1; @Theory public void $shouldBeGreaterThanZero(int param) { Assert.assertTrue(param > 0); } } ``` After you run the above test, you will get the following test reports: 1shouldBeGreaterThanZero passed2shouldBeGreaterThanZero passed-1shouldBeGreaterThanZero failed Note that the special character $ in test method name is replaced with corresponding DataPoint"s string representation.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.154927s