Uses of Interface
org.mockito.MockedConstruction.Context
Packages that use MockedConstruction.Context
Package
Description
Mockito is a mock library for java - see
Mockito
class for usage.Internal classes, not to be used by clients.
ByteBuddy related stuff.
Static utils
Mockito plugins allow customization of behavior.
-
Uses of MockedConstruction.Context in org.mockito
Methods in org.mockito with parameters of type MockedConstruction.ContextModifier and TypeMethodDescriptionvoid
MockedConstruction.MockInitializer.prepare
(T mock, MockedConstruction.Context context) Method parameters in org.mockito with type arguments of type MockedConstruction.ContextModifier and TypeMethodDescriptionstatic <T> MockedConstruction<T>
Mockito.mockConstruction
(Class<T> classToMock, Function<MockedConstruction.Context, MockSettings> mockSettingsFactory) Creates a thread-local mock controller for all constructions of the given class.static <T> MockedConstruction<T>
Mockito.mockConstruction
(Class<T> classToMock, Function<MockedConstruction.Context, MockSettings> mockSettingsFactory, MockedConstruction.MockInitializer<T> mockInitializer) Creates a thread-local mock controller for all constructions of the given class. -
Uses of MockedConstruction.Context in org.mockito.internal
Method parameters in org.mockito.internal with type arguments of type MockedConstruction.ContextModifier and TypeMethodDescription<T> MockedConstruction<T>
MockitoCore.mockConstruction
(Class<T> typeToMock, Function<MockedConstruction.Context, ? extends MockSettings> settingsFactory, MockedConstruction.MockInitializer<T> mockInitializer) -
Uses of MockedConstruction.Context in org.mockito.internal.creation.bytebuddy
Classes in org.mockito.internal.creation.bytebuddy that implement MockedConstruction.ContextModifier and TypeClassDescriptionprivate static class
Fields in org.mockito.internal.creation.bytebuddy with type parameters of type MockedConstruction.ContextModifier and TypeFieldDescriptionprivate final Function<MockedConstruction.Context,
MockHandler<T>> InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl.handlerFactory
private final Map<Class<?>,
BiConsumer<Object, MockedConstruction.Context>> InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl.interceptors
private final DetachedThreadLocal<Map<Class<?>,
BiConsumer<Object, MockedConstruction.Context>>> InlineDelegateByteBuddyMockMaker.mockedConstruction
private final Function<MockedConstruction.Context,
MockCreationSettings<T>> InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl.settingsFactory
Method parameters in org.mockito.internal.creation.bytebuddy with type arguments of type MockedConstruction.ContextModifier and TypeMethodDescriptionByteBuddyMockMaker.createConstructionMock
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer) InlineByteBuddyMockMaker.createConstructionMock
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer) InlineDelegateByteBuddyMockMaker.createConstructionMock
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer) Constructor parameters in org.mockito.internal.creation.bytebuddy with type arguments of type MockedConstruction.ContextModifierConstructorDescriptionprivate
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) 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) -
Uses of MockedConstruction.Context in org.mockito.internal.util
Method parameters in org.mockito.internal.util with type arguments of type MockedConstruction.ContextModifier and TypeMethodDescriptionstatic <T> MockMaker.ConstructionMockControl<T>
MockUtil.createConstructionMock
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, MockedConstruction.MockInitializer<T> mockInitializer) -
Uses of MockedConstruction.Context in org.mockito.plugins
Method parameters in org.mockito.plugins with type arguments of type MockedConstruction.ContextModifier and TypeMethodDescriptiondefault <T> MockMaker.ConstructionMockControl<T>
MockMaker.createConstructionMock
(Class<T> type, Function<MockedConstruction.Context, MockCreationSettings<T>> settingsFactory, Function<MockedConstruction.Context, MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer) If you want to provide your own implementation ofMockMaker
this method should: Intercept all constructions of the specified type in the current thread Only intercept the construction after being enabled. Stops the interception when disabled.