Class ResourcePathMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<org.apache.sling.api.resource.Resource>
-
- org.apache.sling.hamcrest.matchers.ResourcePathMatcher
-
- All Implemented Interfaces:
org.hamcrest.Matcher<org.apache.sling.api.resource.Resource>,org.hamcrest.SelfDescribing
public class ResourcePathMatcher extends org.hamcrest.TypeSafeMatcher<org.apache.sling.api.resource.Resource>Matcher which matches whenever the path of the given resource is equal to the path given in the constructor.
-
-
Constructor Summary
Constructors Constructor Description ResourcePathMatcher(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddescribeMismatchSafely(org.apache.sling.api.resource.Resource resource, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)protected booleanmatchesSafely(org.apache.sling.api.resource.Resource resource)
-
-
-
Constructor Detail
-
ResourcePathMatcher
public ResourcePathMatcher(String path)
-
-
Method Detail
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
matchesSafely
protected boolean matchesSafely(org.apache.sling.api.resource.Resource resource)
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<org.apache.sling.api.resource.Resource>
-
describeMismatchSafely
protected void describeMismatchSafely(org.apache.sling.api.resource.Resource resource, org.hamcrest.Description mismatchDescription)- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<org.apache.sling.api.resource.Resource>
-
-