TestComponent.java:14: error: com.google.common.util.concurrent.ListeningExecutorService is bound multiple times:
ApiRouter getRouter();
^
@Provides @Singleton com.google.common.util.concurrent.ListeningExecutorService backends.testing.FakeBackendModule.provideExecutorService()
@Provides @Singleton com.google.common.util.concurrent.ListeningExecutorService backends.BackendModule.provideExecutorService()
Override isn't supported any more. Component interfaces is how you do these kind of things.
Let's say you have a BackendComponent. It needs a ListeningExecutingService. You need a create another component that will provide it, e.g. ServiceComponent and use that component as a dependency on BackendComponent.
Then you can create FakeServiceComponent and have it extend ServiceComponent.
At runtime, you can give the FakeServiceComponent when creating tge BackendComponent.
--
You received this message because you are subscribed to the Google Groups "Dagger Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dagger-discus...@googlegroups.com.
To post to this group, send email to dagger-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.