java.lang.Object
org.easymock.internal.Injection
Described mock instance for injection.
- Since:
- 3.3
- Author:
- Alistair Todd
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the annotation describing this mock instance.getMock()
Gets the mock instance for this injection.Get the field name qualifier for this injection.boolean
Is this injection matched by some injection target?void
Change the status to indicate that this injection was matched to some target.
-
Constructor Details
-
Injection
Create instance containing the given mock and annotation.- Parameters:
mock
- a mock object instanceannotation
- Mock annotation describing the mock
-
-
Method Details
-
getMock
Gets the mock instance for this injection.- Returns:
- a mock object instance
-
getAnnotation
Gets the annotation describing this mock instance.- Returns:
- annotation describing the mock instance
-
getQualifier
Get the field name qualifier for this injection.- Returns:
- the field name qualifier for this injection which may be empty string where not set.
-
setMatched
public void setMatched()Change the status to indicate that this injection was matched to some target. -
isMatched
public boolean isMatched()Is this injection matched by some injection target?- Returns:
- true if setMatched was called, indicating that a matching injection target was found
-