| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeMismatchSafely(T item, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static <T> Matcher | hasProperty(String
the name of the JavaBean property that examined beans should possess propertyName)Creates a matcher that matches when the examined object has a JavaBean property with the specified name. |
| public boolean | matchesSafely(T obj)
Implements abstract org. |
| propertyName | back to summary |
|---|---|
| private final String propertyName | |
| HasProperty | back to summary |
|---|---|
| public HasProperty(String propertyName) | |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(T item, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| hasProperty | back to summary |
|---|---|
| public static <T> Matcher Creates a matcher that matches when the examined object has a JavaBean property with the specified name. For example: assertThat(myBean, hasProperty("foo"))
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(T obj) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |