| 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 by invoking all getter style properties. |
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 by invoking all getter style properties. |
static <T> TheSameAs<T> |
BeanMatchers.theSameAs(T object,
String name,
TheSameAs.PropertyType propertyType)
Deprecated.
|
static <T> TheSameAs<T> |
BeanMatchers.theSameAs(T object,
TheSameAs.PropertyType propertyType)
Deprecated.
|
static <T> TheSameAs<T> |
BeanMatchers.theSameBeanAs(T object)
Return an instance of a
Matcher which will perform a deep
comparison of the two objects by invoking all bean style properties where
both a getter and setter exists. |
static <T> TheSameAs<T> |
BeanMatchers.theSameBeanAs(T object,
String name)
Return an instance of a
Matcher which will perform a deep
comparison of the two objects by invoking all bean style properties where
both a getter and setter exists. |
| Modifier and Type | Method and Description |
|---|---|
<P> TheSameAs<T> |
TheSameAs.comparePath(String path,
org.hamcrest.Matcher<P> matcher)
Override the PropertyComparator used for a path to use a hamcrest
Matcher.
|
TheSameAs<T> |
TheSameAs.comparePath(String path,
TheSameAs.PropertyComparator<?> comparator)
Override the PropertyComparator used for a path.
|
<P> TheSameAs<T> |
TheSameAs.compareProperty(String path,
org.hamcrest.Matcher<P> matcher)
Override the PropertyComparator used for a property to use a hamcrest
matcher.
|
TheSameAs<T> |
TheSameAs.compareProperty(String path,
TheSameAs.PropertyComparator<?> comparator)
Override the PropertyComparator used for a property.
|
<P> TheSameAs<T> |
TheSameAs.compareType(Class<P> type,
org.hamcrest.Matcher<P> matcher)
Override the PropertyComparator used for a type to use a hamcrest
Matcher.
|
<P> TheSameAs<T> |
TheSameAs.compareType(Class<P> type,
TheSameAs.PropertyComparator<P> 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 by comparing all getter properties
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:
|
static <T> TheSameAs<T> |
TheSameAs.theSameBeanAs(T object)
Creates a matcher that matches the full object graph for the given
instance against another instance by comparing bean properties i.e.
|
static <T> TheSameAs<T> |
TheSameAs.theSameBeanAs(T object,
String name)
Creates a matcher that matches the full object graph for the given
instance against another instance by comparing bean properties i.e.
|
Copyright © 2015. All rights reserved.