|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=FIELD) @Retention(value=RUNTIME) public @interface InjectIntoMany
Is used to inject a instance into multiple ObjectUnderTest instances.
Example 1:
@InjectIntoMany
private User user = new User();
Example 2:
@InjectIntoMany(value = {
InjectInto(targetComponentId = "obejctUnderTest1"),
InjectInto(targetComponentId = "obejctUnderTest2", fieldName = "user")
})
private User user = new User();
| Optional Element Summary | |
|---|---|
InjectInto[] |
value
(Optional) the injection targets Default are all ObjectUnderTest annotated fields |
public abstract InjectInto[] value
Default are all ObjectUnderTest annotated fields
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||