Class InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
java.lang.Object
org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
- All Implemented Interfaces:
MockedConstruction.Context
- Enclosing class:
InlineDelegateByteBuddyMockMaker
private static class InlineDelegateByteBuddyMockMaker.InlineConstructionMockContext
extends Object
implements MockedConstruction.Context
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
InlineConstructionMockContext
(Object[] arguments, Class<?> type, String[] parameterTypeNames) -
Method Summary
Modifier and TypeMethodDescriptionList
<?> Get the arguments that were passed to the constructor.Constructor
<?> Get the constructor that is invoked during the mock creation.int
getCount()
-
Field Details
-
PRIMITIVES
-
count
private int count -
arguments
-
type
-
parameterTypeNames
-
-
Constructor Details
-
InlineConstructionMockContext
-
-
Method Details
-
getCount
public int getCount()- Specified by:
getCount
in interfaceMockedConstruction.Context
-
constructor
Description copied from interface:MockedConstruction.Context
Get the constructor that is invoked during the mock creation.- Specified by:
constructor
in interfaceMockedConstruction.Context
- Returns:
- the constructor.
-
arguments
Description copied from interface:MockedConstruction.Context
Get the arguments that were passed to the constructor.- Specified by:
arguments
in interfaceMockedConstruction.Context
- Returns:
- the arguments passed to the constructor, as a list.
-