The Description instances passed to the Filter are generated by describeChild and contain no children and no information about the parameters being used. Thus, it's impossible to exclude them based on this information.
Expected Behavior
The Filter receives the sameDescription instances used as direct children of the Description returned by JUnitParamsRunner.getDescription().
A
Filter
that is applied to aJUnitParamsRunner
gets passed differentDescription
instances than the runner actually uses.Example
Running the
main
method from the following example demonstrates the issue.Output
Actual Behavior
The
Description
instances passed to theFilter
are generated bydescribeChild
and contain no children and no information about the parameters being used. Thus, it's impossible to exclude them based on this information.Expected Behavior
The
Filter
receives the sameDescription
instances used as direct children of theDescription
returned byJUnitParamsRunner.getDescription()
.Potentially Related Issues
52
122