| 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.withMessage(org.hamcrest.Matcher<String> matcher)
Assigns an external Matcher to be used in combination for exception message validation.
|
ExceptionMatcher |
ExceptionMatcher.withMessage(String message)
Assigns an expected message for validation.
|
ExceptionMatcher |
ExceptionMatcher.withMessageContaining(String... substrings)
Assigns one or more expected substrings for exception message validation.
|
Copyright © 2020. All rights reserved.