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

Hamcrest: more exception matchers

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: core, testing
    • Labels:
      None
    • Magnolia Release:
      5.4

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: