-
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
ExpectedException fails when assumption fails #1566
Comments
Thanks for reporting this If you are using 4.12 I strongly recommend replacing usages of |
It doesn't appear that's in 4.12. For now I've made it work with some |
Woops, sorry, |
@smithkm It looks like we have a test case for exactly this use case: This results in an If you call |
@allanhaywood based on the JUnit self tests, Unless someone provides a minimal, complete and verifiable example demonstrating it, I think we should close it as not reproducible |
Optimistically closing. I'd reopen it if someone provides a reproducer. |
@kcooney I agree. Thanks for confirming. |
I have tests that
Assume.assumeTrue(false)
under some circumstances to indicate the test is not relevant. Some of these tests are using anExpectedException
rule to check for other exceptions. Under JUnit 4.11 the test gets ignored as expected, under JUnit 4.12 the rule tries to match theAssumptionViolatedException
and fails.Probably related to the fix for #687
The text was updated successfully, but these errors were encountered: