Class ResourceCollectionPathMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<Collection<org.apache.sling.api.resource.Resource>>
-
- org.apache.sling.hamcrest.matchers.ResourceCollectionPathMatcher
-
- All Implemented Interfaces:
org.hamcrest.Matcher<Collection<org.apache.sling.api.resource.Resource>>
,org.hamcrest.SelfDescribing
public class ResourceCollectionPathMatcher extends org.hamcrest.TypeSafeMatcher<Collection<org.apache.sling.api.resource.Resource>>
Ensures a collection of resources has exactly the given list of paths in the given order.
-
-
Constructor Summary
Constructors Constructor Description ResourceCollectionPathMatcher(List<String> paths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
describeMismatchSafely(Collection<org.apache.sling.api.resource.Resource> items, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(Collection<org.apache.sling.api.resource.Resource> items)
-
-
-
Method Detail
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
matchesSafely
protected boolean matchesSafely(Collection<org.apache.sling.api.resource.Resource> items)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Collection<org.apache.sling.api.resource.Resource>>
-
describeMismatchSafely
protected void describeMismatchSafely(Collection<org.apache.sling.api.resource.Resource> items, org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<Collection<org.apache.sling.api.resource.Resource>>
-
-