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
It seems that my JUnit tests using Mockito fails because the Unpaged does not fully support equals/hashcode sementic when Sort is specified.
In the tests below, the tests PageableTests#testEqualsOnUnpagedUnsortedCase1 and PageableTests#testEqualsOnUnpagedUnsortedCase2 are success (because there is it the same instance) while the last one PageableTests#testEqualsOnUnpagedSorted fails due to a leak on equals/hashcode sementic (because equals/hashcode sementic is not implemented).
So using Mockito on a repository with Pageable fails when I use a Pageable.unpaged(Sort). Could you, please review the code to correct this issue.
It seems that my JUnit tests using Mockito fails because the Unpaged does not fully support equals/hashcode sementic when Sort is specified.
In the tests below, the tests PageableTests#testEqualsOnUnpagedUnsortedCase1 and PageableTests#testEqualsOnUnpagedUnsortedCase2 are success (because there is it the same instance) while the last one PageableTests#testEqualsOnUnpagedSorted fails due to a leak on equals/hashcode sementic (because equals/hashcode sementic is not implemented).
So using Mockito on a repository with Pageable fails when I use a Pageable.unpaged(Sort). Could you, please review the code to correct this issue.
The text was updated successfully, but these errors were encountered: