File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
* then the {@link Test} method, and finally any {@link After} methods,
18
18
* throwing an exception if any of these fail. If there are multiple
19
19
* 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
21
21
* that depends on your JVM's implementation of the reflection API, which is
22
22
* 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.
24
25
* <p>
25
26
* For example, here is a test class that creates a temporary folder before
26
27
* each test method, and deletes it after each:
You can’t perform that action at this time.
0 commit comments