--
You received this message because you are subscribed to the Google Groups "Jukito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jukito+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Usually, the need to mock a concrete class is an indication of a design problem. If the dependency is complex enough to be mocked then you should abstract it in an interface.
As such there is no way to automatically mock all dependencies of a class. I would not necessarily be opposed to a proposal in that direction if you have one.
ForceMock will mock any concrete class deriving from a specific type. If you have a market interface for the classes you want to mock then you could use ForceMock but it's probably not a very clean solution.
or if there is more than one possible implementation.