mattinger
11/10/2021, 9:01 PM@Provides
@Singleton
fun okHttp(
mockInterceptor: MockInterceptor
): OkHttpClient { ... }
I was under the impression that I could use an @BindValue in my test case to provide the MockInterceptor, but the dagger compiler seems to not be able to resolve that dependency. My other option is adding it as an @Provides in the module and using @Inject to get it into my test case. What’s the preferred way of actually doing something like this?