Package org.apache.sling.hamcrest
Class ResourceCollectionMatchers
- java.lang.Object
-
- org.apache.sling.hamcrest.ResourceCollectionMatchers
-
public final class ResourceCollectionMatchers extends Object
A collection ofMatcher
s for resource collections.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<Collection<org.apache.sling.api.resource.Resource>>
paths(String... paths)
Asserts that the given resource collection has resources with exactly the given paths in the given order.
-
-
-
Method Detail
-
paths
public static org.hamcrest.Matcher<Collection<org.apache.sling.api.resource.Resource>> paths(String... paths)
Asserts that the given resource collection has resources with exactly the given paths in the given order.- Parameters:
paths
- the expected resource paths- Returns:
- a matcher instance
-
-