public class Injection
extends java.lang.Object
Constructor and Description |
---|
Injection(java.lang.Object mock,
Mock annotation)
Create instance containing the given mock and annotation.
|
Modifier and Type | Method and Description |
---|---|
Mock |
getAnnotation()
Gets the annotation describing this mock instance.
|
java.lang.Object |
getMock()
Gets the mock instance for this injection.
|
java.lang.String |
getQualifier()
Get the field name qualifier for this injection.
|
boolean |
isMatched()
Is this injection matched by some injection target?
|
void |
setMatched()
Change the status to indicate that this injection was matched to some target.
|
public Injection(java.lang.Object mock, Mock annotation)
mock
- a mock object instanceannotation
- Mock annotation describing the mockpublic java.lang.Object getMock()
public Mock getAnnotation()
public java.lang.String getQualifier()
public void setMatched()
public boolean isMatched()