@Target(value=FIELD) @Retention(value=RUNTIME) public @interface InjectIntoMany
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();
Modifier and Type | Optional Element and Description |
---|---|
InjectInto[] |
value
(Optional) the injection targets
Default are all
ObjectUnderTest annotated fields |
public abstract InjectInto[] value
Default are all ObjectUnderTest
annotated fields
Copyright © 2014. All rights reserved.