Uses of Class
org.junit.rules.ExpectedException
Packages that use ExpectedException
-
Uses of ExpectedException in org.junit.rules
Methods in org.junit.rules that return ExpectedExceptionModifier and TypeMethodDescriptionExpectedException.handleAssertionErrors()Deprecated.AssertionErrors are handled by default since JUnit 4.12.ExpectedException.handleAssumptionViolatedExceptions()Deprecated.AssumptionViolatedExceptions are handled by default since JUnit 4.12.static ExpectedExceptionExpectedException.none()Deprecated.Since 4.13Assert.assertThrowscan be used to verify that your code throws a specific exception.ExpectedException.reportMissingExceptionWithMessage(String message) Specifies the failure message for tests that are expected to throw an exception but do not throw any.