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