I'm using the @UninstallModules annotation in one of my test classes to change the actual dependencies with the mock ones. Therefore, I create duplicates of those modules in my testing package.
The problem however is that it causes confusion for the dagger compiler. I get the [Dagger/DuplicateBindings] error on every class if I don't uninstall the testing modules with @UninstallModules for all of them.
How can I make the dagger modules specific to one class?