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

new Hamcrest Matcher to help build chaining Matchers

    XMLWordPrintable

    Details

    • Type: New Feature
    • 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

      It's currently fairly difficult to build custom matchers which can be used in "chain" mode. This proposed abstract Matcher helps making this possible:

       dummyWithName("a").withTitle("fooTitle")
      

      Complete samples are in YamlConfigurationSourceTest and of course a concrete Matcher such as info.magnolia.config.dummy.DummyThingMatcher in the config branch.

        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: