Class | Description |
---|---|
BasicMatcher |
A basic matcher is just using the equals method.
|
ComparableMatcher<T extends java.lang.Comparable<T>> |
A matcher which considers two comparable objects equals if they
compare with result
0 . |
ComparatorMatcher<T> |
A matcher which uses a comparator for equality checking.
|
Match |
Helper class for
matcher construction. |
NegateMatcher<T1,T2> |
A matcher which uses the negated result of a wrapped matcher.
|
NullCheckMatcher<T1,T2> |
A matcher handling
null values for a wrapped matcher. |
ReferenceMatcher |
A reference matcher is only accepting reference equality.
|
RevertedMatcher<T1,T2> |
A matcher which inverts the direction of comparison of a wrapped matcher.
|
RevertedUniformMatcher<T> |
A matcher which inverts the direction of comparison of a wrapped matcher.
|
This package contains predefined matchers
.
The problem with the basic equals() method
is that it is not
flexible enough, because equality may depend on context. This package provides some basic
matchers to allow more flexible equality handling.