public class SamePropertyValuesAs<T> extends TypeSafeDiagnosingMatcher<T>
Modifier and Type | Class and Description |
---|---|
static class |
SamePropertyValuesAs.PropertyMatcher |
Constructor and Description |
---|
SamePropertyValuesAs(T expectedBean) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(T item,
Description mismatchDescription)
Subclasses should implement this.
|
static <T> Matcher<T> |
samePropertyValuesAs(T expectedBean) |
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public SamePropertyValuesAs(T expectedBean)
public boolean matchesSafely(T item, Description mismatchDescription)
TypeSafeDiagnosingMatcher
matchesSafely
in class TypeSafeDiagnosingMatcher<T>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <T> Matcher<T> samePropertyValuesAs(T expectedBean)
Copyright © 2016. All rights reserved.