http://code.google.com/p/jukito/

Even depending on Guice or some other DI library in unit-level tests is a
> code smell.

It's not about depending on Guice, it's about productivity. Any test could
be written without the need for Guice, but it's more work. If you're using
Guice at every level of your app, why not using it in your test ? It's well
documented, well tested and easy to use.

Jukito works with Guice 3 even if it's not written. There's not a lot of
documentation but it's because there's almost no boiler plate to write !
Jukito use standard Guice annotation and allow you to inject in any JUnit
method anything you want. It will also automatically mock any interface it
find that you didn't binded inside you test module.

Btw, if you need anything else on Jukito, more documentation, just ask, we
will do it ! Here's an interesting blog post about how to test views with
JUnit and Jukito:
http://arcbees.wordpress.com/2010/11/25/testing-views-using-gwt-platform-mockingbinder/

Cheers,

On Mon, Feb 21, 2011 at 1: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.
>
> --
> 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.
>
>


-- 
Christian Goudreau
www.arcbees.com

-- 
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