Skip to content

Commit

Permalink
Highlight java syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
seize-the-dave committed Feb 20, 2014
1 parent 2ceb3f3 commit 888a35c
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions doc/ReleaseNotes4.10.md
Expand Up @@ -12,18 +12,20 @@ junit-dep-4.9.jar incorrectly contained hamcrest classes, which could lead to ve

The RuleChain rule allows ordering of TestRules:

public static class UseRuleChain {
@Rule
public TestRule chain= RuleChain
.outerRule(new LoggingRule("outer rule")
.around(new LoggingRule("middle rule")
.around(new LoggingRule("inner rule");

@Test
public void example() {
assertTrue(true);
}
}
```java
public static class UseRuleChain {
@Rule
public TestRule chain= RuleChain
.outerRule(new LoggingRule("outer rule")
.around(new LoggingRule("middle rule")
.around(new LoggingRule("inner rule");

@Test
public void example() {
assertTrue(true);
}
}
```

writes the log

Expand Down

0 comments on commit 888a35c

Please sign in to comment.