public class IsInstanceOf<T> extends Object implements PropertyExpectation<T>
PropertyExpectation to check if a property type is an instance of a given type| Constructor and Description |
|---|
IsInstanceOf(Class<? extends T> expected) |
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Return a description of expectation
|
boolean |
matches(T actual)
Check if this expectation is met
|
public boolean matches(T actual)
PropertyExpectationmatches in interface PropertyExpectation<T>public String describe()
PropertyExpectationdescribe in interface PropertyExpectation<T>Copyright © 2014. All rights reserved.