Blog Archive for gadominas during April 2011
How would you mock your services which are not mock-friendly?
Let’s introduce a real case (the bad one) with some preconditions:
You have a service where DAOs are wired at runtime based on the some conditions.
DAOs lookup API is private and not exposed to the caller
In this case you will be blocked from mocking those DAOs because of such approach.
The solution I came up with was to tweak the...