| Package | Description |
|---|---|
| net.obvj.junit.utils.matchers |
Provides matchers in general, for usage with
org.hamcrest.MatcherAssert. |
| Modifier and Type | Method and Description |
|---|---|
static InstantiationNotAllowedMatcher |
AdvancedMatchers.instantiationNotAllowed()
Creates a matcher that matches if the examined class cannot be instantiated, which is
particularly useful for utility classes.
|
static InstantiationNotAllowedMatcher |
InstantiationNotAllowedMatcher.instantiationNotAllowed()
Creates a matcher that matches if the examined class cannot be instantiated, which is
particularly useful for utility classes.
|
InstantiationNotAllowedMatcher |
InstantiationNotAllowedMatcher.throwing(Class<? extends Exception> exception)
Assigns an expected Exception (optional step).
|
InstantiationNotAllowedMatcher |
InstantiationNotAllowedMatcher.withMessage(org.hamcrest.Matcher<String> matcher)
Assigns an external Matcher to be used in combination for the exception message
validation (optional).
|
InstantiationNotAllowedMatcher |
InstantiationNotAllowedMatcher.withMessage(String message)
Assigns an expected message for Exception validation (optional).
|
Copyright © 2024. All rights reserved.