[MAGNOLIA-6063] new Hamcrest Matcher to help build chaining Matchers Created: 05/Feb/15  Updated: 27/Jul/15  Resolved: 25/Feb/15

Status: Closed
Project: Magnolia
Component/s: core, testing
Affects Version/s: None
Fix Version/s: 5.4

Type: New Feature Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-6050 Hamcrest: more exception matchers Closed
relation
is related to MAGNOLIA-6092 Hamcrest UtilMatchers: a pattern for ... Closed
Template:
Acceptance criteria:
Empty

 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.



 Comments   
Comment by Magnolia International [ 25/Feb/15 ]

Fixed emptySeed() and added tests

Generated at Mon Feb 12 04:10:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.