- Companion:
- class
Type members
Inherited classlikes
Exception matcher checking the type of a thrown exception.
Exception matcher checking the type of a thrown exception.
- Inherited from:
- ExceptionMatchers
This matchers matches exception instances.
This matchers matches exception instances.
- See also:
throwA
- Inherited from:
- ExceptionMatchers
Value members
Inherited methods
check if a Throwable has a specific class and error message The message must be a regular expression, for example (new IllegalArgumentException("incorrect arguments"): Throwable) must beExceptionIllegalArgumentException
check if a Throwable has a specific class and error message The message must be a regular expression, for example (new IllegalArgumentException("incorrect arguments"): Throwable) must beExceptionIllegalArgumentException
- Inherited from:
- ExceptionMatchers
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
- Inherited from:
- ResultChecks
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
- Inherited from:
- ResultChecks
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Inherited from:
- MatchResultStackTrace
- Returns:
a matcher checking the type of an Exception and its message (as a regexp)
- Inherited from:
- ExceptionMatchers