Skip navigation links
C D H M N O P R 

C

containsChildren(String...) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which have exactly the children with the names given in children.
containsChildrenInAnyOrder(String...) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which have exactly the children with the names given in children.

D

describeMismatchSafely(Resource, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceChildrenMatcher
 
describeMismatchSafely(Collection<Resource>, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceCollectionPathMatcher
 
describeMismatchSafely(Iterator<Resource>, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceIteratorPathMatcher
 
describeMismatchSafely(Resource, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceNameMatcher
 
describeMismatchSafely(Resource, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourcePathMatcher
 
describeMismatchSafely(Resource, Description) - Method in class org.apache.sling.hamcrest.matchers.ResourcePropertiesMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceChildrenMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceCollectionPathMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceIteratorPathMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourceNameMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourcePathMatcher
 
describeTo(Description) - Method in class org.apache.sling.hamcrest.matchers.ResourcePropertiesMatcher
 

H

hasChildren(String...) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which have amongst their children the specified children.

M

matchesSafely(Resource) - Method in class org.apache.sling.hamcrest.matchers.ResourceChildrenMatcher
 
matchesSafely(Collection<Resource>) - Method in class org.apache.sling.hamcrest.matchers.ResourceCollectionPathMatcher
 
matchesSafely(Iterator<Resource>) - Method in class org.apache.sling.hamcrest.matchers.ResourceIteratorPathMatcher
 
matchesSafely(Resource) - Method in class org.apache.sling.hamcrest.matchers.ResourceNameMatcher
 
matchesSafely(Resource) - Method in class org.apache.sling.hamcrest.matchers.ResourcePathMatcher
 
matchesSafely(Resource) - Method in class org.apache.sling.hamcrest.matchers.ResourcePropertiesMatcher
 

N

name(String) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches only if the resource has the given name assertThat(resource, resourceWithName('resource1'));
nameAndProps(String, Map<String, Object>) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which has the given name and at least the specified properties defined with matching values Values not declared in the the properties parameter are not validated.
nameAndProps(String, Object...) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which has the given name and at least the specified properties defined with matching values Values not declared in the the properties parameter are not validated.

O

org.apache.sling.hamcrest - package org.apache.sling.hamcrest
 
org.apache.sling.hamcrest.matchers - package org.apache.sling.hamcrest.matchers
 

P

path(String) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches only if the resource has the given path assertThat(resource, hasName('/a/b/c'));
paths(String...) - Static method in class org.apache.sling.hamcrest.ResourceCollectionMatchers
Asserts that the given resource collection has resources with exactly the given paths in the given order.
paths(String...) - Static method in class org.apache.sling.hamcrest.ResourceIteratorMatchers
Asserts that the given resource collection has resources with exactly the given paths in the given order.
props(Map<String, Object>) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which has at least the specified properties defined with matching values Values not declared in the the properties parameter are not validated.
props(Object...) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources which has at least the specified properties defined with matching values Values not declared in the the properties parameter are not validated.

R

ResourceChildrenMatcher - Class in org.apache.sling.hamcrest.matchers
A matcher which matches if the given resource has at least the child resources with the names given in the constructor.
ResourceChildrenMatcher(List<String>, boolean, boolean) - Constructor for class org.apache.sling.hamcrest.matchers.ResourceChildrenMatcher
 
ResourceCollectionMatchers - Class in org.apache.sling.hamcrest
A collection of Matchers for resource collections.
ResourceCollectionPathMatcher - Class in org.apache.sling.hamcrest.matchers
Ensures a collection of resources has exactly the given list of paths in the given order.
ResourceCollectionPathMatcher(List<String>) - Constructor for class org.apache.sling.hamcrest.matchers.ResourceCollectionPathMatcher
 
ResourceIteratorMatchers - Class in org.apache.sling.hamcrest
A collection of Matchers for resource iterators.
ResourceIteratorPathMatcher - Class in org.apache.sling.hamcrest.matchers
Ensures an iterator of resources has exactly the given list of paths in the given order.
ResourceIteratorPathMatcher(List<String>) - Constructor for class org.apache.sling.hamcrest.matchers.ResourceIteratorPathMatcher
 
ResourceMatchers - Class in org.apache.sling.hamcrest
A collection of Matchers that work on the Resource API level
ResourceNameMatcher - Class in org.apache.sling.hamcrest.matchers
Matcher which matches whenever the name of the given resource is equal to the name given in the constructor.
ResourceNameMatcher(String) - Constructor for class org.apache.sling.hamcrest.matchers.ResourceNameMatcher
 
ResourcePathMatcher - Class in org.apache.sling.hamcrest.matchers
Matcher which matches whenever the path of the given resource is equal to the path given in the constructor.
ResourcePathMatcher(String) - Constructor for class org.apache.sling.hamcrest.matchers.ResourcePathMatcher
 
ResourcePropertiesMatcher - Class in org.apache.sling.hamcrest.matchers
 
ResourcePropertiesMatcher(Map<String, Object>) - Constructor for class org.apache.sling.hamcrest.matchers.ResourcePropertiesMatcher
 
resourceType(String) - Static method in class org.apache.sling.hamcrest.ResourceMatchers
Matches resources with a resource type set to the specified resourceType assertThat(resource, resourceOfType('my/app'));
C D H M N O P R 
Skip navigation links

Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.