T - type of the path rootV - type of value being matchedpublic class PathMatcher<T,V>
extends org.hamcrest.TypeSafeDiagnosingMatcher<T>
| Constructor and Description |
|---|
PathMatcher(Path<V> path,
org.hamcrest.Matcher<? super V> matcher) |
PathMatcher(Path<V> path,
org.hamcrest.Matcher<? super V> matcher,
com.google.common.base.Function<T,V> accessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T,P> org.hamcrest.Matcher<T> |
hasValue(Path<P> path) |
static <T,P> org.hamcrest.Matcher<T> |
hasValue(Path<P> path,
org.hamcrest.Matcher<? super P> matcher) |
protected boolean |
matchesSafely(T bean,
org.hamcrest.Description mismatchDescription) |
public static <T,P> org.hamcrest.Matcher<T> hasValue(Path<P> path)
public static <T,P> org.hamcrest.Matcher<T> hasValue(Path<P> path, org.hamcrest.Matcher<? super P> matcher)
protected boolean matchesSafely(T bean, org.hamcrest.Description mismatchDescription)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<T>public void describeTo(org.hamcrest.Description description)
Copyright © 2007–2014 Mysema Ltd. All rights reserved.