Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

How to avoid "mock returning mock" when using factory pattern

I have recently encountered multiple articles with title Everytime a mock returns a mock a fairy dies And I ran into exact same situation while using factory class in my code. I am writing a sample ...
bharathp's user avatar
  • 103