Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error "Missing @Injectable for field" with @Resource annotation #359
I use JMockit 1.28 (tried 1.29)
I work with
Also if using
I use something like this as workaround:
Might be that is a bug, maybe I 'm doing something wrong. Thank you in advance and hope for your help.
The names need to match, otherwise it's not possible to support a scenario where multiple @resource's of the same type are injected into a given object.
Name matching can be made more flexible, though. I am thinking of two possible solutions, when given a resource name composed of multiple parts separated by special characters such as "." (dot) or "-" (hyphen):
Which solution would you prefer?
I am tech lead of the project so let me answer.
How possible to support a scenario where multiple