public class BeanMatcher<T>
extends org.hamcrest.BaseMatcher<T>
| Constructor and Description |
|---|
BeanMatcher(BeanPropertyMatcher<?>... propertyMatchers) |
BeanMatcher(boolean only,
BeanPropertyMatcher<?>... propertyMatchers) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
static <T> BeanMatcher<T> |
has(BeanPropertyMatcher<?>... propertyMatchers) |
static <T> BeanMatcher<T> |
hasOnly(BeanPropertyMatcher<?>... propertyMatchers) |
boolean |
matches(Object item) |
public BeanMatcher(BeanPropertyMatcher<?>... propertyMatchers)
public BeanMatcher(boolean only,
BeanPropertyMatcher<?>... propertyMatchers)
public static <T> BeanMatcher<T> has(BeanPropertyMatcher<?>... propertyMatchers)
public static <T> BeanMatcher<T> hasOnly(BeanPropertyMatcher<?>... propertyMatchers)
public boolean matches(Object item)
public void describeTo(org.hamcrest.Description description)
Copyright © 2018. All rights reserved.