Join Slack
Powered by
Had one issue with spring data, where I was trying...
# spring
t
Tim Schraepen
06/24/2019, 7:56 AM
Had one issue with spring data, where I was trying to mock repository.findByIdOrNull, which is an extension function, and I regretted not wrapping spring data repositories in my own interfaces. Is there a best practice for that other than wrapping?
s
sdeleuze
06/24/2019, 10:54 AM
For
findByIdOrNull
I guess you have to mock
findById
. For repositories, you can also directly extend
Repository
and specify only the methods you need.
16
Views
Open in Slack
Previous
Next