[
https://issues.apache.org/jira/browse/SLING-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed SLING-5481.
-----------------------------------
> Improve the Sling Hamcrest Matchers mismatch message
> ----------------------------------------------------
>
> Key: SLING-5481
> URL: https://issues.apache.org/jira/browse/SLING-5481
> Project: Sling
> Issue Type: Improvement
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Fix For: Testing Hamcrest 1.0.0
>
>
> Currently both hamcrest matchers added in SLING-5063 rely on the resource's
> {{toString()}} method to print out the comparison value.
> An example mismatch might look like this
> {quote}
> Expected: Resource with children ["child1"]
> but: was <MergedResource [path=/merged,
> resources=[Ljava.lang.String;@1875b888]>
> {quote}
> It would be nice to tweak the mismatch error message by overwriting the
> {{describeMismatchSafely}} method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)