Constructor | Description |
---|---|
InjectionTarget(Field f) |
Create instance for injection to the given field.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
accepts(Injection injection) |
Can the given Injection be applied to this InjectionTarget?
|
Field |
getTargetField() |
Get the field to which injections will be assigned.
|
void |
inject(Object obj,
Injection injection) |
Perform the injection against the given object set the "matched" status of the injection when successful.
|
public boolean accepts(Injection injection)
injection
- candidate Injectionpublic void inject(Object obj, Injection injection)
obj
- Object instance on which to perform injection.injection
- Injection containing mock to assign.public Field getTargetField()
Copyright © 2001–2018 EasyMock contributors. All rights reserved.