public class IsOneOf<T> extends Object implements PropertyExpectation<T>
| Constructor and Description |
|---|
IsOneOf(Collection<T> possibleValues) |
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Return a description of expectation
|
boolean |
matches(T actual)
Check if this expectation is met
|
public IsOneOf(Collection<T> possibleValues)
public boolean matches(T actual)
PropertyExpectationmatches in interface PropertyExpectation<T>public String describe()
PropertyExpectationdescribe in interface PropertyExpectation<T>Copyright © 2015. All rights reserved.