| Package | Description |
|---|---|
| org.exparity.hamcrest | |
| org.exparity.hamcrest.beans |
| Modifier and Type | Method and Description |
|---|---|
static <T> TheSameAs<T> |
BeanMatchers.theSameAs(T object)
Return an instance of a
Matcher which will perform a deep comparison of the two objects. |
static <T> TheSameAs<T> |
BeanMatchers.theSameAs(T object,
String name)
Return an instance of a
Matcher which will perform a deep comparison of the two objects. |
| Modifier and Type | Method and Description |
|---|---|
TheSameAs<T> |
TheSameAs.comparePath(String path,
TheSameAs.PropertyComparator comparator)
Override the PropertyComparator used for a path.
|
TheSameAs<T> |
TheSameAs.compareProperty(String path,
TheSameAs.PropertyComparator comparator)
Override the PropertyComparator used for a property.
|
TheSameAs<T> |
TheSameAs.compareType(Class<?> type,
TheSameAs.PropertyComparator comparator)
Override the PropertyComparator used for a type.
|
TheSameAs<T> |
TheSameAs.excludePath(String path)
Exclude a property path from the comparison.
|
TheSameAs<T> |
TheSameAs.excludeProperty(String property)
Exclude a property from the comparison.
|
TheSameAs<T> |
TheSameAs.excludeType(Class<?> type)
Exclude a type from the comparison.
|
static <T> TheSameAs<T> |
TheSameAs.theSameAs(T object)
Creates a matcher that matches the full object graph for the given instance against another instance
For example:
|
static <T> TheSameAs<T> |
TheSameAs.theSameAs(T object,
String name)
Creates a matcher that matches the full object graph for the given instance against another instance
For example:
|
Copyright © 2015. All rights reserved.