Class InjectionTarget
java.lang.Object
org.easymock.internal.InjectionTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan the given Injection be applied to this InjectionTarget?Get the field to which injections will be assigned.voidPerform the injection against the given object set the "matched" status of the injection when successful.
-
Constructor Details
-
InjectionTarget
-
-
Method Details
-
accepts
Can the given Injection be applied to this InjectionTarget?- Parameters:
injection- candidate Injection- Returns:
- true if injection represents a mock that can be applied to this InjectionTarget, false if the mock is of a type that cannot be assigned
-
inject
-
getTargetField
Get the field to which injections will be assigned.- Returns:
- target field for injection assignment.
-