Class InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl<T>
java.lang.Object
org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl<T>
- All Implemented Interfaces:
MockMaker.ConstructionMockControl<T>
- Enclosing class:
- InlineDelegateByteBuddyMockMaker
private class InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl<T>
extends Object
implements MockMaker.ConstructionMockControl<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final Function<MockedConstruction.Context,
MockHandler<T>> private final Map<Class<?>,
BiConsumer<Object, MockedConstruction.Context>> private final MockedConstruction.MockInitializer<T>
private final Function<MockedConstruction.Context,
MockCreationSettings<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
InlineConstructionMockControl
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer, Map<Class<?>, BiConsumer<Object, MockedConstruction.Context>> interceptors) -
Method Summary
-
Field Details
-
type
-
settingsFactory
-
handlerFactory
-
mockInitializer
-
interceptors
-
all
-
count
private int count
-
-
Constructor Details
-
InlineConstructionMockControl
private InlineConstructionMockControl(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer, Map<Class<?>, BiConsumer<Object, MockedConstruction.Context>> interceptors)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceMockMaker.ConstructionMockControl<T>
-
enable
public void enable()- Specified by:
enable
in interfaceMockMaker.ConstructionMockControl<T>
-
disable
public void disable()- Specified by:
disable
in interfaceMockMaker.ConstructionMockControl<T>
-
getMocks
- Specified by:
getMocks
in interfaceMockMaker.ConstructionMockControl<T>
-