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

Disallow non-static methods to be annotated org.junit.BeforeClass #24

Closed
cushon opened this issue Oct 31, 2014 · 1 comment
Closed

Disallow non-static methods to be annotated org.junit.BeforeClass #24

cushon opened this issue Oct 31, 2014 · 1 comment

Comments

@cushon
Copy link
Collaborator

cushon commented Oct 31, 2014

Original issue created by alexeagle@google.com on 2012-07-16 at 06:48 PM


The BeforeClass method is called reflectively by JUnit before creating instances of the test class. So a non-static implementation causes an error.

@cushon
Copy link
Collaborator Author

cushon commented Oct 31, 2014

Original comment posted by alexeagle@google.com on 2012-07-16 at 10:43 PM


(No comment entered for this change.)


Status: Duplicate
Merged Into: #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant