Class HashCodeAndEqualsMockWrapper
java.lang.Object
org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
hashCode and equals safe mock wrapper.
It doesn't use the actual mock Object.hashCode()
and Object.equals(java.lang.Object)
method as they might
throw an NPE if those method cannot be stubbed even internally.
Instead the strategy is :
- For hashCode : use
System.identityHashCode(java.lang.Object)
- For equals : use the object reference equality
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary