Skip to content

Commit 00dadff

Browse files
committed
Merge pull request #789 from PissedCapslock/master
Fixed typo and added link to the RuleChain class
2 parents c6ab1af + 967438d commit 00dadff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/junit/Rule.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
* then the {@link Test} method, and finally any {@link After} methods,
1818
* throwing an exception if any of these fail. If there are multiple
1919
* annotated {@link Rule}s on a class, they will be applied in order of fields first, then methods.
20-
* However, if there are mutliple fields (or methods) they will be applied in an order
20+
* However, if there are multiple fields (or methods) they will be applied in an order
2121
* that depends on your JVM's implementation of the reflection API, which is
2222
* undefined, in general. Rules defined by fields will always be applied
23-
* before Rules defined by methods.
23+
* before Rules defined by methods. You can use a {@link org.junit.rules.RuleChain} if you want
24+
* to have control over the order in which the Rules are applied.
2425
* <p>
2526
* For example, here is a test class that creates a temporary folder before
2627
* each test method, and deletes it after each:

0 commit comments

Comments
 (0)