-
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
No error/warning on non static method annotated with @DataPoint #125
Labels
Comments
I have a test case and proposed fix at https://github.com/MatrixFrog/junit/tree/dataPoints -- I suppose I could throw a more JUnit-specific exception, rather than just |
Now packaged up as a shiny pull request: https://github.com/KentBeck/junit/pull/328 |
Linking to #328. |
pimterry
added a commit
to pimterry/junit
that referenced
this issue
Jan 28, 2013
…static and public too, fixing junit-team#125
dsaff
referenced
this issue
Jan 29, 2013
…-#125 Added validation that all datapoint methods and fields are public and static to theory initialization
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This test is marked as successfull but did not run:
I think the problem lies in Theories:126.
statement.evaluate() catches exceptions silently
(org.junit.experimental.theories.Theories.TheoryAnchor#methodCompletesWithParameters:158).
Therefore "handleDataPointSuccess" is called even when an exception has
been thrown....
So I think there are at least two things missing:
The text was updated successfully, but these errors were encountered: