| Package | Description |
|---|---|
| com.shazam.shazamcrest.matcher |
| Modifier and Type | Method and Description |
|---|---|
CustomisableMatcher<T> |
CustomisableMatcher.ignoring(Class<?> clazz)
Specify the object type of the fields to be skipped from the matcher comparison.
|
CustomisableMatcher<T> |
CustomisableMatcher.ignoring(org.hamcrest.Matcher<String> fieldNamePattern)
Specify the pattern of field names to ignore.
|
CustomisableMatcher<T> |
CustomisableMatcher.ignoring(String fieldPath)
Specify the path of the field to be skipped from the matcher comparison.
|
static <T> CustomisableMatcher<T> |
Matchers.sameBeanAs(T expected)
Returns a
NullMatcher in case the expectation is null, a
IsEqualMatcher if it's a primitive, String or Enum
or a DiagnosingCustomisableMatcher otherwise. |
<V> CustomisableMatcher<T> |
CustomisableMatcher.with(String fieldPath,
org.hamcrest.Matcher<V> matcher)
Specify the path of the field to be matched with a specific matcher.
|
Copyright © 2015. All Rights Reserved.