Class MockMethodAdvice.SerializableRealMethodCall
- java.lang.Object
-
- org.mockito.internal.creation.bytebuddy.MockMethodAdvice.SerializableRealMethodCall
-
- All Implemented Interfaces:
java.io.Serializable
,RealMethod
- Enclosing class:
- MockMethodAdvice
private static class MockMethodAdvice.SerializableRealMethodCall extends java.lang.Object implements RealMethod
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mockito.internal.invocation.RealMethod
RealMethod.FromBehavior, RealMethod.FromCallable, RealMethod.IsIllegal
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
arguments
private java.lang.String
identifier
private MockReference<java.lang.Object>
instanceRef
private SerializableMethod
origin
-
Constructor Summary
Constructors Modifier Constructor Description private
SerializableRealMethodCall(java.lang.String identifier, java.lang.reflect.Method origin, java.lang.Object instance, java.lang.Object[] arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
invoke()
boolean
isInvokable()
-
-
-
Field Detail
-
identifier
private final java.lang.String identifier
-
origin
private final SerializableMethod origin
-
instanceRef
private final MockReference<java.lang.Object> instanceRef
-
arguments
private final java.lang.Object[] arguments
-
-
Method Detail
-
isInvokable
public boolean isInvokable()
- Specified by:
isInvokable
in interfaceRealMethod
-
invoke
public java.lang.Object invoke() throws java.lang.Throwable
- Specified by:
invoke
in interfaceRealMethod
- Throws:
java.lang.Throwable
-
-