-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
None
We currently have UtilMatchers.isExceptionWithMatchingMessage which takes a regular expression to match the exception's message. (as well ass UtilMatchers.isExceptionWithMessage which simply expects the exact message).
It would be convenient to be able to pass an arbitrary Matcher to match the exception message instead.
By using ChainingMatcher (see MAGNOLIA-6063), we could introduce an ExceptionMatcher
Acceptance criteria
- depends upon
-
MAGNOLIA-6063 new Hamcrest Matcher to help build chaining Matchers
- Closed
- is related to
-
MAGNOLIA-6092 Hamcrest UtilMatchers: a pattern for asserting an exception is thrown
- Closed