-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added validtion that @ClassRule should only be implementation of TestRule #1020
Conversation
@kcooney Have fixed the validation problem for |
@@ -164,6 +164,7 @@ private static boolean isMethodRule(FrameworkMember<?> member) { | |||
* Requires the validated member to be non-static | |||
*/ | |||
private static final class MemberMustBeNonStaticOrAlsoClassRule implements RuleValidator { | |||
@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still use JDK5, which doesn't use @Override
when implementing methods from an interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcooney Oh sorry for that. Have reverted that and squashed the changes.
… be implementation of TestRule
What did happen when using |
@marcphilipp Before this change there was no validation error, but the rule did not get call during execution same problem with issue #589. |
Added validtion that @ClassRule should only be implementation of TestRule
Thanks. @marcphilipp do we need to update the release notes before building a new RC? I can try to find time to update them this week |
@kcooney Yes, we should. Thanks in advance! :-) |
Fixes #1019
@ClassRule
must be an implementation ofTestRule