Skip to content
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

Support @Rule for methods works only for TestRule but not for MethodRule #589

Closed
krystiannowak opened this issue Jan 3, 2013 · 7 comments · Fixed by #1015
Closed

Support @Rule for methods works only for TestRule but not for MethodRule #589

krystiannowak opened this issue Jan 3, 2013 · 7 comments · Fixed by #1015

Comments

@krystiannowak
Copy link

The support introduced in #83 seems to work now (in JUnit 4.11) only for org.junit.rules.TestRule implementations, but it misses org.junit.rules.MethodRule (un-deprecated again) when looking for methods annotated by @rule

@marcphilipp
Copy link
Member

@matthewfarwell Do you have time to take a look?

@dsaff
Copy link
Member

dsaff commented Jan 3, 2013

Ah, good point.

@matthewfarwell
Copy link
Contributor

Yes, I'll have a look when I have a minute or two...

@d0nutptr
Copy link

I'm thinking about contributing to this project. Mind if I take a swing at this?

@marcphilipp
Copy link
Member

Sure, go ahead. You would first have to verify this issue is (still) present.

@npathai
Copy link
Contributor

npathai commented Nov 1, 2014

@marcphilipp I have verified with latest build that the problem persists. BlockRunner does not call the MethodRules that are returned by annotated methods. I am on it. Pull request on the way.

@npathai
Copy link
Contributor

npathai commented Nov 1, 2014

Have resolved the issue and created pull request #1015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants