The aim of this kind of dependency injection mechanisms is that of resolving dependencies at compile time. Using something like @Named annotation resolves at runtime and thus it breaks the fail fast principle.
During test activities, you do not use implicits resolution. You resolve dependencies manually using mocks, as with any other kind of dependency injection mechanisms.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The aim of this kind of dependency injection mechanisms is that of resolving dependencies at compile time. Using something like
@Named
annotation resolves at runtime and thus it breaks the fail fast principle.During test activities, you do not use implicits resolution. You resolve dependencies manually using mocks, as with any other kind of dependency injection mechanisms.