Hi,

You can try to use  Modules.override(yourModule).with(testModule) to 
override yourModule's bindings with those in testModule. 

Regards,
jeuxjeux20


Le vendredi 1 mai 2020 à 10:37:43 UTC+2, mehul...@gmail.com a écrit :

> I am getting error - A binding to XX was already configured at YY. How can 
> I have the same Interface binded to its Implementation at multiple 
> location. The reason I want to do this when I do Unit Testing I want to 
> have binding for each Class that I am testing otherwise I can always get 
> away with having binding at one place.
>

-- 
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 google-guice+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/d532bc12-ae3a-4c99-afb1-6192384233efn%40googlegroups.com.

Reply via email to