Best practices for mocking Repository
Hi all,
First of all sorry for the double posting (I asked this in the NOSQL forum wiht no luck some days ago)
I've started using the MongoDb Spring Data and I have some services with references to different Repository interfaces (extending PagingAndSortingRepository).
I'd like to unit test these services injecting repository doubles or mocks.
Does Spring Data / MongoDb provide any testing facilities in these regards? Are there any practices to follow in this field or should I create my own mocks?
Many thanks in advance