Permalink
Browse files

Merge pull request #436 from matthewfarwell/testrule-javadoc

Fixes #427 inconsistent javadoc for test rules
  • Loading branch information...
dsaff committed Aug 2, 2012
2 parents 185a219 + 30ecbbc commit eaa8d51a642df066faaa8f3c33020889fd0b758c
@@ -15,7 +15,7 @@
* <pre>
* public static class UseRuleChain {
* &#064;Rule
- * public TestRule chain= RuleChain
+ * public RuleChain chain= RuleChain
* .outerRule(new LoggingRule("outer rule")
* .around(new LoggingRule("middle rule")
* .around(new LoggingRule("inner rule");
@@ -18,7 +18,7 @@
* private static String watchedLog;
*
* &#064;Rule
- * public TestRule watchman= new TestWatcher() {
+ * public TestWatcher watchman= new TestWatcher() {
* &#064;Override
* protected void failed(Throwable e, Description description) {
* watchedLog+= description + &quot;\n&quot;;
@@ -12,7 +12,7 @@
* public static String log;
*
* &#064;Rule
- * public TestRule globalTimeout= new Timeout(20);
+ * public Timeout globalTimeout= new Timeout(20);
*
* &#064;Test
* public void testInfiniteLoop1() {
@@ -13,7 +13,7 @@
* private ErrorLog errorLog = new ErrorLog();
*
* &#064;Rule
- * public TestRule verifier = new Verifier() {
+ * public Verifier verifier = new Verifier() {
* &#064;Override public void verify() {
* assertTrue(errorLog.isEmpty());
* }

0 comments on commit eaa8d51

Please sign in to comment.