Class BaseInvocation

java.lang.Object
mockit.Invocation
mockit.internal.BaseInvocation
Direct Known Subclasses:
FakeInvocation

public abstract class BaseInvocation extends Invocation
Base class for encapsulating state and logic needed by both the Mocking and Faking APIs, but which should not go into Invocation in order to keep the published API clean.
  • Constructor Details

    • BaseInvocation

      protected BaseInvocation(@Nullable Object invokedInstance, @NonNull Object[] invokedArguments, @org.checkerframework.checker.index.qual.NonNegative int invocationCount)
  • Method Details

    • getRealMember

      @NonNull public final Member getRealMember()
    • findRealMember

      @NonNull protected abstract Member findRealMember()
    • doProceed

      @Nullable public final <T> T doProceed(@Nullable Object[] replacementArguments)
    • prepareToProceed

      public abstract void prepareToProceed()
    • cleanUpAfterProceed

      protected abstract void cleanUpAfterProceed()
    • getPrevious

      @Nullable public final BaseInvocation getPrevious()
    • setPrevious

      public final void setPrevious(@NonNull BaseInvocation previous)
    • isMethodInSuperclass

      public final boolean isMethodInSuperclass(@Nullable Object mock, @NonNull String classDesc)