Comment by [email protected]:
Correct me if I'm wrong, but doesn't using anything besides constructor
injection force you to use the injector when writing unit tests?
What I'd like to do is to use guice when running an application but to
provide the dependencies myself (usually mocks) during testing. Wouldn't
wanna keep a second set of config modules just for testing ...
So how do you guys go about writing tests for classes that contain a logger?
For more information:
http://code.google.com/p/google-guice/wiki/CustomInjections
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.