public class MapComparisonPerformer<V>
extends java.lang.Object
ClassPropertyKey types:
Note: key sets are compared with use of default Set.equals(Object) method!
No custom performers are used, for objects are required to implement at least some hashCode\equals functionality
to be used as map keys. If your map implementation required any more sophisticated key matching - please implement
you own comparison performer for such a map.
Such a functionality implemented to perform maximum early assertion before starting actually deeply comparing map values. So comparison results might be not as informative as required in case of early assert. If so - please implement your own custom comparison performer.
| Constructor and Description |
|---|
MapComparisonPerformer(ComparisonPerformer<? super V> elementPerformer) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonResult |
apply(java.util.Map<?,? extends V> actual,
java.util.Map<?,? extends V> expected) |
boolean |
equals(java.lang.Object object) |
ComparisonPerformer<? super T> |
getElementPerformer() |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, testpublic MapComparisonPerformer(ComparisonPerformer<? super V> elementPerformer)
public ComparisonResult apply(java.util.Map<?,? extends V> actual, java.util.Map<?,? extends V> expected)
public ComparisonPerformer<? super T> getElementPerformer()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object