DEV Community

Discussion on: Resolve me, Implicitly

Collapse
 
riccardo_cardin profile image
Riccardo Cardin

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.