Package mockit.internal.expectations
Class RecordAndReplayExecution
java.lang.Object
mockit.internal.expectations.RecordAndReplayExecution
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecordAndReplayExecution
(Expectations targetObject, Object... instancesToBePartiallyMocked) -
Method Summary
Modifier and TypeMethodDescriptionstatic Error
static Object
recordOrReplay
(Object mock, int mockAccess, String classDesc, String mockDesc, String genericSignature, int executionModeOrdinal, Object[] args) Only to be called from generated bytecode or from the Mocking Bridge.startVerifications
(boolean inOrder, Object[] mockedTypesAndInstancesToVerify)
-
Field Details
-
RECORD_OR_REPLAY_LOCK
-
TEST_ONLY_PHASE_LOCK
-
-
Constructor Details
-
RecordAndReplayExecution
public RecordAndReplayExecution() -
RecordAndReplayExecution
public RecordAndReplayExecution(@NonNull Expectations targetObject, @Nullable Object... instancesToBePartiallyMocked)
-
-
Method Details
-
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
-