Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6050

Hamcrest: more exception matchers

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • core, testing
    • 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

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD