If the method
private Description describeMethod(FrameworkMethod method)
would be protected it is possible to extend the JUnitParamsRunner class
properly.
Reason:
i have created a custom annotation that will mark test method for execution
only for certain browsers. To evaluate the annotation i have extended
JUnitParamsRunner and overwritte the runChild method. In this method i check
the annotation value against a system problem which tells me which browser is
used. If the browser is not in the list of configured browsers the test will be
ignored. To properly ignore a parameterized test i need to call
notifier.fireTestIgnored(describeMethod(method));
which uses the private describeMethod method, which again uses the private
parameterisedRunner Attribute, which i cannot access from a extended class.
If the describeMethod is protected it would be possible to call it directly
from the exending class.
Original issue reported on code.google.com by andreas....@gmail.com on 18 May 2012 at 8:39
Original issue reported on code.google.com by
andreas....@gmail.com
on 18 May 2012 at 8:39