David Saff
David Saff
Pawel, Thanks for the bug report. I think the attached commit will fix it. Do you have time to give it a quick look in the next 24 hours? Thanks.
Actually, I'm skipping 4.9.1, and will be releasing 4.10 in the next week or so, with this fix included.
We should (finally) fix this in 4.12
Unfortunately, I don't think we're going to (finally) fix this in 4.12.
You can pass the class instance into the TestRule at creation time: @Rule public TestRule myRule = new MyRule(this);
Christian, The annotations are available at Description#getAnnotations
RainerW, I can understand the frustration. I can imagine some change to the way we handle TestRule would be useful. Can you share a little more about what your current...
Henrique, others, If we simply undeprecate MethodRule, does this problem go away? Thanks, David
Let me play with this a bit, and get back to you.
Thanks for pinging me. A few weeks ago, I circulated this among a couple people. What do you think about it as a way forward? https://docs.google.com/document/d/1B6Z45BSGsY08rZqe2KUZTJ3RVsnUE1-HcXjl5MFm9ls/edit?pli=1