How to mock interaction from method outside of Spec in Spock
I have a mocked object
How to mock interaction from method outside of Spec in Spock
I have a mocked object
How to mock interaction from method outside of Spec in Spock
I have a mocked object
Spock how to mock interaction from method outside of Spec
I have a mocked object
Mocking ProductCategory findAll fails in Groovy Spock test
I have a class which associates Products with a ProductCategory. It uses a ProductCategoryRepository which is a MongoDB repository. The ProductCategoryRepository has a findAll methods which takes the productIds of the products and finds their corresponding ProductCategory. However when mock the findAll method in the spock test it fails;