When you are using Guice in unit test I recommend you look at a testing framework which uses Guice.

https://github.com/ArcBees/Jukito
http://onami.apache.org/test/


On 10/08/2013 10:56 AM, kumar santosh wrote:
1. I have class AModule  where we are binding are the dependencies.

2.  In class Test i created Instance of B using Injector. like .
  Injector in = Guice.createInjector(new AModule())
// getting instance of B
 in.getInstance(B);

3. I am in same jvm, In some other class D, can i get instance of some class "C" without again calling Guice.createInjector(new AModule())
--
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.

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