You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setters store an unmodifiable hash map and the getters return an unmodifiable copy of the map.
The method beanDoesNotHaveValidGetterAndSetterForProperty in AbstractBeanAccessorMatcher generates a Mockito Map and calls the setter of the class and then the getter.
The check testValue.equals(result) always evaluates to false.
The text was updated successfully, but these errors were encountered:
orien
changed the title
hasValidGettersAndSetters is not working for maps
Support getters returning proxy objects (Collections.unmodifiableMap)
Jan 9, 2021
Assuming I have the following DTO
The setters store an unmodifiable hash map and the getters return an unmodifiable copy of the map.
The method
beanDoesNotHaveValidGetterAndSetterForProperty
inAbstractBeanAccessorMatcher
generates a Mockito Map and calls the setter of the class and then the getter.The check
testValue.equals(result)
always evaluates to false.The text was updated successfully, but these errors were encountered: