in src/main/java/org/apache/sling/hamcrest/matchers/ResourceCollectionPathMatcher.java [36:47]
public ResourceCollectionPathMatcher(List<String> paths) {
if ( paths == null || paths.isEmpty() ) {
throw new IllegalArgumentException("names is null or empty");
}
List<Matcher<? super Resource>> resourceMatchers = new ArrayList<Matcher<? super Resource>>();
for (String path : paths) {
resourceMatchers.add(new ResourcePathMatcher(path));
}
this.iterarableMatcher = org.hamcrest.collection.IsIterableContainingInOrder.contains(resourceMatchers);
}