首页| 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
  • 睥睨 1小时前 成为了本站会员

  • ? 3小时前 成为了本站会员

  • IATWAY 1天前 成为了本站会员

  • 大智若愚 1天前 成为了本站会员

  • Mason 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • Half_Punch 2天前 成为了本站会员

  • liqing71718 2天前 成为了本站会员

  • 伟国 2天前 成为了本站会员

  • songy 2天前 成为了本站会员

0.224349s