-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Description
equals and hashCode implementations in MockitoSpyBeanOverrideMetadata care about getClass() but shouldn't:
Lines 105 to 109 in 28f62ab
| } | |
| // For SpyBean we want the class to be exactly the same. | |
| if (other == null || other.getClass() != getClass()) { | |
| return false; | |
| } |
This looks like a copy/paste from the Spring Boot implementation that doesn't have the notion of BeanOverrideStrategy that is enough already to differentiate between those two.
Metadata
Metadata
Assignees
Labels
type: taskA general taskA general task