On Mon, Feb 21, 2011 at 12:20 PM, Esko Luontola <[email protected]>wrote:

> On Feb 21, 5:52 pm, Thomas Johnson <[email protected]> wrote:
> > What's the most matures/ library for combining Guice, JUnit, and
> > Mockito for testing?
>
> All of those as-is. Constructing a Guice injector is only a couple of
> lines of code, so why would a library be needed for it? On the other
> hand, a large test setup is a code smell that there is some problem
> with the design. Even depending on Guice or some other DI library in
> unit-level tests is a code smell.
>
>
I think it's mostly for the module setup. If I've got a class that takes a
half-dozen dependencies in its constructor, don't I have to write a test
module that binds all its dependencies to the corresponding mock objects?

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en.

Reply via email to