Please sign in to comment.
the two handle... methods are returning the rule
The two methods handleAssertionError() and handleAssumptionViolatedExceptions() are returning the rule. Now you can write @Rule public ExpectedException thrown = none().handleAssertionError(); or @Rule public ExpectedException thrown = none().handleAssumptionViolatedExceptions() Thank you David, for this suggestion.
- Loading branch information...
Showing with 4 additions and 2 deletions.