Class ResourceCollectionMatchers


  • public final class ResourceCollectionMatchers
    extends Object
    A collection of Matchers for resource collections.
    • 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