On Mon, Nov 25, 2013 at 5:51 AM, Brian Pontarelli <[email protected]>wrote:

> Cédric,
>
> Assuming you don't use setters, how do you test without an injector or
> hacked up reflection?
>

Why would I test without an injector? That's the whole point.

We test with TestNG (obviously) which supports Guice natively and we use
what I believe are fairly common techniques, with a mix of mocks and fake
objects and for our functional tests, production modules overridden with
test ones.


> field injection does not have the same guarantees from the JVM as
> constructors.
>

I've been trying to get a concrete proof for that last statement (the
theory indicates it should take about twenty lines to demonstrate) without
much luck so far. I'm still hopeful to get one.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to