public class HamcrestComparator<T> extends Object implements TheSameAs.PropertyComparator<T>
| Constructor and Description |
|---|
HamcrestComparator(org.hamcrest.Matcher<T> matcher) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(T lhs,
T rhs)
Return
true if the actual value matches the expected
value |
public HamcrestComparator(org.hamcrest.Matcher<T> matcher)
public boolean matches(T lhs, T rhs)
TheSameAs.PropertyComparatortrue if the actual value matches the expected
valuematches in interface TheSameAs.PropertyComparator<T>Copyright © 2015. All rights reserved.