Has anyone been able to get @BindValue to work in ...
# dagger
m
Has anyone been able to get @BindValue to work in an abstract class? If i try, it complains that i haven't annotated the abstract class with @HiltAndroidTest. if i do that, it then doesn't recognize the object, and my graph validation fails. Ideally i'd like to setup some mocks in the base class that end up binding to the graph:
Copy code
@BindValue val myLogger = mock<MyLogger>()
and then extend that base class and let the child classes be able to set mock expectations on that. Is there a restriction on only being able to use @BindValue in a concrete class? (for the record, @Inject) works fine, and for now i've created a module with the mocks and injected those into my test
I've also had trouble getting nested test modules working with base classes as well