Class RecordAndReplayExecution

java.lang.Object
mockit.internal.expectations.RecordAndReplayExecution

public final class RecordAndReplayExecution extends Object
  • Field Details

    • RECORD_OR_REPLAY_LOCK

      public static final ReentrantLock RECORD_OR_REPLAY_LOCK
    • TEST_ONLY_PHASE_LOCK

      public static final ReentrantLock TEST_ONLY_PHASE_LOCK
  • Constructor Details

    • RecordAndReplayExecution

      public RecordAndReplayExecution()
    • RecordAndReplayExecution

      public RecordAndReplayExecution(@NonNull Expectations targetObject, @Nullable Object... instancesToBePartiallyMocked)
  • Method Details

    • getRecordPhase

      @Nullable public RecordPhase getRecordPhase()
    • recordOrReplay

      @Nullable public static Object recordOrReplay(@Nullable Object mock, int mockAccess, @NonNull String classDesc, @NonNull String mockDesc, @Nullable String genericSignature, int executionModeOrdinal, @Nullable Object[] args) throws Throwable
      Only to be called from generated bytecode or from the Mocking Bridge.
      Throws:
      Throwable
    • startVerifications

      @NonNull public BaseVerificationPhase startVerifications(boolean inOrder, @Nullable Object[] mockedTypesAndInstancesToVerify)
    • endCurrentReplayIfAny

      @Nullable public static Error endCurrentReplayIfAny()