ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

Please make the Method 'describeMethod' in the class JUnitParamsRunner proteced #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by lipinski...@gmail.com on 14 Dec 2012 at 3:09