public class InjectionPlan extends Object
| Constructor and Description |
|---|
InjectionPlan() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInjection(Injection injection)
Add an
Injection to this container. |
void |
addTestSubjectField(Field f)
Add a field that should be treated as a test subject injection target.
|
List<Injection> |
getQualifiedInjections()
Get all injections having fieldName qualifiers.
|
List<Field> |
getTestSubjectFields()
Get fields identified as test subjects to which injection of mocks should be attempted.
|
List<Injection> |
getUnqualifiedInjections()
Get all injections that do not have fieldName qualifiers.
|
public void addInjection(Injection injection)
Injection to this container. It will be managed according to the presence
of a fieldName qualifier, and attempting to add an Injection with a duplicate fieldName
qualifier will cause an error.injection - Injection to manage as part of this planpublic void addTestSubjectField(Field f)
f - Field representing a test subject to which injection of mocks will be attemptedpublic List<Field> getTestSubjectFields()
public List<Injection> getQualifiedInjections()
Copyright © 2001–2014 EasyMock contributors. All rights reserved.