public class Matches<T> extends Object implements PropertyExpectation<T>
PropertyExpectation which checks the property against and expected hamcrest Matcher| Constructor and Description |
|---|
Matches(org.hamcrest.Matcher<T> matcher) |
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Return a description of expectation
|
boolean |
matches(Object actual)
Check if this expectation is met
|
public Matches(org.hamcrest.Matcher<T> matcher)
public boolean matches(Object actual)
PropertyExpectationmatches in interface PropertyExpectation<T>public String describe()
PropertyExpectationdescribe in interface PropertyExpectation<T>Copyright © 2015. All rights reserved.