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