Skip to content

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