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
After running the above test, I'm getting the following exception:
java.lang.AssertionError: Getter returned non equal value for field
Expected: java.util.ArrayList<[Bar{....}
Actual: java.util.Collections$UnmodifiableCollection<[Bar{....
The Bar class gonna remain the same, what changes I could do in test classes so that I can match the ArrayList with Collections.unmodifiableCollection?
I'm using
openpojo
library having version0.8.10
. There is a scenario where I've following class:In one of the test class, it has getter & setter validation using openpojo is as follow:
After running the above test, I'm getting the following exception:
The Bar class gonna remain the same, what changes I could do in test classes so that I can match the
ArrayList
withCollections.unmodifiableCollection
?I've raised same on StackOverflow as well: https://stackoverflow.com/questions/70953219/in-openpojo-how-can-i-ignore-the-type-of-list-whether-arraylist-or-collection
The text was updated successfully, but these errors were encountered: