@Target(value=FIELD) @Retention(value=RUNTIME) public @interface InjectIntoByType
InjectModule should try to inject the object assigned to
the annotated field to the object defined by the target attribute (or the object(s) assigned to the field annotated
with TestedObject.
Automatic injection by type is used, which means that the object is injected to the most specific property with an
assignable type.| Modifier and Type | Optional Element and Description |
|---|---|
PropertyAccess |
propertyAccess
The property access that should be used for injection.
|
String[] |
target
The name of the field that references the object to which the object in the annotated field should be injected.
|
public abstract String[] target
TestedObjectpublic abstract PropertyAccess propertyAccess
Copyright © 2016. All Rights Reserved.