The class ExampleMatcher.PropertySpecifiers does not implement equals/hashCode. Since an ExampleMatcher and its PropertySpecifiers are referenced by an Example instance, this means that it is not possible to mock the implementation of repository methods taking an Example as argument, e.g. JpaRepository.findAll(Example)
Tor-Einar Jarnbjo opened DATACMNS-900 and commented
The class
ExampleMatcher.PropertySpecifiers
does not implementequals
/hashCode
. Since anExampleMatcher
and itsPropertySpecifiers
are referenced by anExample
instance, this means that it is not possible to mock the implementation of repository methods taking anExample
as argument, e.g.JpaRepository.findAll(Example)
Affects: 1.12.2 (Hopper SR2)
Referenced from: pull request #175
Backported to: 1.12.3 (Hopper SR3)
The text was updated successfully, but these errors were encountered: