-
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
Add overload of TestWatcher.skipped() that uses the external AssumptionViolationException #928
Add overload of TestWatcher.skipped() that uses the external AssumptionViolationException #928
Conversation
With these updates, shouldn't there also be some tests that use the external version of |
@dhasday Thanks for taking a look The methods on |
@kcooney Sure, that makes sense, but these tests only verify backwards compatibility since all of the overridden skipped methods are using the internal version of |
@dhasday If someone explicitly throws the internal |
@kcooney I was specifically referring to the logic in As to |
@@ -29,12 +29,46 @@ public void succeeds() { | |||
} | |||
} | |||
|
|||
public static class InternalViolatedAssumptionTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this class down after neitherLogSuccessNorFailedForViolatedAssumption
The internal classes are always positioned above the test that is using them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stefanbirkner Done and rebased and squashed commits.
…onViolationException. This allows code using TestWatcher to handle assumption violation exceptions without using deprecated classes.
…-violation Add overload of TestWatcher.skipped() that uses the external AssumptionViolationException
Thanks. |
Add overload of TestWatcher.skipped() that uses the external AssumptionViolationException
This allows code using TestWatcher to handle assumption violation exceptions
without using deprecated classes.