Hey,
lets say i have method - wantToTest
The method use in XXX.doSomeProcess and doSomeProcess use in YYY.doSomeProcess use in ZZZ.doSomeProcess .
ZZZ.doSomeProcess - use database
i want to
unit test the method wantToTest, but as yoo see above it depend on XXX which depend on YYY ...
i want only to mock ZZZ and decouple ZZZ from YYY.
i dont want the overhead of mocking XXX and YYY.
I will be happy to hear your advices.
Thank you