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

Hamcrest: more exception matchers

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.4
    • None
    • core, testing
    • None

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD