Package mockit
Class TestedClassWithAnnotatedDITest
java.lang.Object
mockit.TestedClassWithAnnotatedDITest
The Class TestedClassWithAnnotatedDITest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Fail for annotated field having an injectable of the same type which was already consumed.void
Fail for annotated field which lacks an injectable.void
injectAllAnnotatedInjectionPoints
(int anotherValue, Runnable secondAction, Runnable anotherAction, boolean unused, String stringFieldWithValue, double numericFieldWithValue, String systemProperty, int anInt, long aLong) Inject all annotated injection points.void
leaveValueAnnotatedInjectionPointsWithDefaultInitializationValue
(Runnable action2, Runnable anotherAction, int anotherValue) Leave value annotated injection points with default initialization value.
-
Constructor Details
-
TestedClassWithAnnotatedDITest
public TestedClassWithAnnotatedDITest()
-
-
Method Details
-
injectAllAnnotatedInjectionPoints
public void injectAllAnnotatedInjectionPoints(int anotherValue, Runnable secondAction, Runnable anotherAction, boolean unused, String stringFieldWithValue, double numericFieldWithValue, String systemProperty, int anInt, long aLong) Inject all annotated injection points.- Parameters:
anotherValue
- the another valuesecondAction
- the second actionanotherAction
- the another actionunused
- the unusedstringFieldWithValue
- the string field with valuenumericFieldWithValue
- the numeric field with valuesystemProperty
- the system propertyanInt
- the an intaLong
- the a long
-
leaveValueAnnotatedInjectionPointsWithDefaultInitializationValue
public void leaveValueAnnotatedInjectionPointsWithDefaultInitializationValue(Runnable action2, Runnable anotherAction, int anotherValue) Leave value annotated injection points with default initialization value.- Parameters:
action2
- the action 2anotherAction
- the another actionanotherValue
- the another value
-
failForAnnotatedFieldWhichLacksAnInjectable
public void failForAnnotatedFieldWhichLacksAnInjectable()Fail for annotated field which lacks an injectable. -
failForAnnotatedFieldHavingAnInjectableOfTheSameTypeWhichWasAlreadyConsumed
public void failForAnnotatedFieldHavingAnInjectableOfTheSameTypeWhichWasAlreadyConsumed(Runnable secondAction) Fail for annotated field having an injectable of the same type which was already consumed.- Parameters:
secondAction
- the second action
-