You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, the documentation should make clear that the RuleChain cannot be used to define the order of existing rules, e.g. the following does not work as expected:
@Rule
public LoggingRule middle = new LoggingRule("middle rule");
@Rule
public RuleChain chain = RuleChain
.outerRule(new LoggingRule("outer rule"))
.around(middle)
.around(new LoggingRule("inner rule"));
In this code, middle is executed twice.
The text was updated successfully, but these errors were encountered:
I have come across this issue and thought it would be a great way to start contributing to JUnit. I'd like to modify the Javadoc as suggested by rillig-nm and also add something to clarify how RuleChaining works with existing rules.
static
is not necessary.In addition, the documentation should make clear that the
RuleChain
cannot be used to define the order of existing rules, e.g. the following does not work as expected:In this code,
middle
is executed twice.The text was updated successfully, but these errors were encountered: