-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 for non-public @Parameter #737
Conversation
Thanks for the contribution
|
@kcooney's explanation is correct. |
Going to make a PR |
Hey guys, im still getting the following exception when running a parameterized test with @parameter on private members:
Did this PR not get merged somehow? |
No, it was rejected with the rationale explained in #737 (comment). |
Hello JUnit!
This patch makes it possible to have @parameter fields in @RunWith(Parameterized.class) tests non-public.
I'm not sure if my change to ParameterizedTestTest is really an appropriate and sufficient test for this minor extension. (But the patch does work and achieve what it should, of course.)
BTW: As I've also found that @parameter was not yet documented on https://github.com/junit-team/junit/wiki/Parameterized-tests, I've taken the liberty of going ahead and directly adding a section about it (incl. ref. to this) - hope that's OK.
Regards,
Michael