Skip to content
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

Fix Non public parameter support #911

Closed
wants to merge 2 commits into from
Closed

Fix Non public parameter support #911

wants to merge 2 commits into from

Conversation

DirkyJerky
Copy link

Maybe?

From #737

@Tibor17
Copy link
Contributor

Tibor17 commented May 9, 2014

@DirkyJerky
Can you move the try-catch block to private static methods, something like checkAccessibility, returning boolean.

@kcooney
Copy link
Member

kcooney commented May 9, 2014

Sorry, but we aren't going to accept this pull request. We don't want tests to pass in some environments where there isn't a security manager (for example, when you run tests from an IDE) and fail in environments where there may be a security manager (for example, a continuous build).

Fields, classes and methods annotated with JUnit annotations need to be public.

@kcooney kcooney closed this May 9, 2014
hdpe added a commit to hdpe/jum that referenced this pull request Jan 4, 2015
The "JUnit way" is to only inject public fields - see e.g.
junit-team/junit4#911 (comment).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants