public class IsComparableTo<T extends Comparable<T>> extends Object implements PropertyExpectation<T>
PropertyExpectation to check if a property is comparable to another| Constructor and Description |
|---|
IsComparableTo(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 IsComparableTo(T expected)
public boolean matches(T actual)
PropertyExpectationmatches in interface PropertyExpectation<T extends Comparable<T>>public String describe()
PropertyExpectationdescribe in interface PropertyExpectation<T extends Comparable<T>>Copyright © 2014. All rights reserved.