| Package | Description |
|---|---|
| net.obvj.junit.utils.matchers |
Provides matchers in general, for usage with
org.hamcrest.MatcherAssert. |
| Modifier and Type | Method and Description |
|---|---|
static ExceptionMatcher |
ExceptionMatcher.throwsException(Class<? extends Exception> exception)
Creates a matcher that matches if the examined procedure throws a given exception.
|
ExceptionMatcher |
ExceptionMatcher.withCause(Class<? extends Throwable> cause)
Assigns an expected cause for evaluation.
|
ExceptionMatcher |
ExceptionMatcher.withMessageContaining(String... substrings)
Assigns one or more expected substrings for the exception message evaluation.
|
Copyright © 2020. All rights reserved.