Class AcrossJVMSerializationFeature.AcrossJVMMockSerializationProxy

java.lang.Object
org.powermock.api.mockito.repackaged.AcrossJVMSerializationFeature.AcrossJVMMockSerializationProxy
All Implemented Interfaces:
Serializable
Enclosing class:
AcrossJVMSerializationFeature

public static class AcrossJVMSerializationFeature.AcrossJVMMockSerializationProxy extends Object implements Serializable
This is the serialization proxy that will encapsulate the real mock data as a byte array.

When called in the constructor it will serialize the mock in a byte array using a custom AcrossJVMSerializationFeature.MockitoMockObjectOutputStream that will annotate the mock class in the stream. Other information are used in this class in order to facilitate deserialization.

Deserialization of the mock will be performed by the readResolve() method via the custom AcrossJVMSerializationFeature.MockitoMockObjectInputStream that will be in charge of creating the mock class.

See Also: