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
Presently @ClassRule can be an implementation of TestRule or MethodRule but it does not make sense to allow MethodRule. So as per discussion on #1016 with @kcooney creating this issue.
// should fail validation as @ClassRule should only allow implementation of `TestRule` but passespublicclassClassRuleTest {
@ClassRulepublicstaticMethodRulemethodRule() {
returnnewMethodRule() {
@OverridepublicStatementapply(Statementbase, FrameworkMethodmethod, Objecttarget) {
returnbase;
}
};
}
@TestpublicvoiddoNothing() {
}
}
The text was updated successfully, but these errors were encountered:
Presently
@ClassRule
can be an implementation ofTestRule
orMethodRule
but it does not make sense to allowMethodRule
. So as per discussion on #1016 with @kcooney creating this issue.The text was updated successfully, but these errors were encountered: