public class HasFieldWithValue<T,U>
extends org.hamcrest.TypeSafeDiagnosingMatcher<T>
| Constructor and Description |
|---|
HasFieldWithValue(String fieldName,
org.hamcrest.Matcher<? super U> valueMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T> org.hamcrest.Matcher<T> |
hasField(String field) |
static <T,U> org.hamcrest.Matcher<T> |
hasField(String field,
org.hamcrest.Matcher<? super U> value) |
protected boolean |
matchesSafely(T argument,
org.hamcrest.Description mismatchDescription) |
protected boolean matchesSafely(T argument, org.hamcrest.Description mismatchDescription)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<T>public void describeTo(org.hamcrest.Description description)
public static <T,U> org.hamcrest.Matcher<T> hasField(String field, org.hamcrest.Matcher<? super U> value)
public static <T> org.hamcrest.Matcher<T> hasField(String field)
Copyright © 2015. All Rights Reserved.