Package mockit

Class TestedClassWithAnnotatedDITest

java.lang.Object
mockit.TestedClassWithAnnotatedDITest

public final class TestedClassWithAnnotatedDITest extends Object
The Class TestedClassWithAnnotatedDITest.
  • 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 value
      secondAction - the second action
      anotherAction - the another action
      unused - the unused
      stringFieldWithValue - the string field with value
      numericFieldWithValue - the numeric field with value
      systemProperty - the system property
      anInt - the an int
      aLong - 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 2
      anotherAction - the another action
      anotherValue - 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