Uses of Interface
org.mockito.MockedConstruction.Context
-
Packages that use MockedConstruction.Context Package Description org.mockito Mockito is a mock library for java - seeMockitoclass for usage.org.mockito.internal Internal classes, not to be used by clients.org.mockito.internal.creation.bytebuddy ByteBuddy related stuff.org.mockito.internal.util Static utilsorg.mockito.plugins Mockito plugins allow customization of behavior. -
-
Uses of MockedConstruction.Context in org.mockito
Methods in org.mockito with parameters of type MockedConstruction.Context Modifier and Type Method Description voidMockedConstruction.MockInitializer. prepare(T mock, MockedConstruction.Context context)Method parameters in org.mockito with type arguments of type MockedConstruction.Context Modifier and Type Method Description static <T> MockedConstruction<T>Mockito. mockConstruction(java.lang.Class<T> classToMock, java.util.function.Function<MockedConstruction.Context,MockSettings> mockSettingsFactory)Creates a thread-local mock controller for all constructions of the given class.static <T> MockedConstruction<T>Mockito. mockConstruction(java.lang.Class<T> classToMock, java.util.function.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.Context Modifier and Type Method Description <T> MockedConstruction<T>MockitoCore. mockConstruction(java.lang.Class<T> typeToMock, java.util.function.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.Context Modifier and Type Class Description private static classInlineDelegateByteBuddyMockMaker.InlineConstructionMockContextFields in org.mockito.internal.creation.bytebuddy with type parameters of type MockedConstruction.Context Modifier and Type Field Description private java.util.function.Function<MockedConstruction.Context,MockHandler<T>>InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl. handlerFactoryprivate java.util.Map<java.lang.Class<?>,java.util.function.BiConsumer<java.lang.Object,MockedConstruction.Context>>InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl. interceptorsprivate DetachedThreadLocal<java.util.Map<java.lang.Class<?>,java.util.function.BiConsumer<java.lang.Object,MockedConstruction.Context>>>InlineDelegateByteBuddyMockMaker. mockedConstructionprivate java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>>InlineDelegateByteBuddyMockMaker.InlineConstructionMockControl. settingsFactoryMethod parameters in org.mockito.internal.creation.bytebuddy with type arguments of type MockedConstruction.Context Modifier and Type Method Description <T> MockMaker.ConstructionMockControl<T>ByteBuddyMockMaker. createConstructionMock(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer)<T> MockMaker.ConstructionMockControl<T>InlineByteBuddyMockMaker. createConstructionMock(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer)<T> MockMaker.ConstructionMockControl<T>InlineDelegateByteBuddyMockMaker. createConstructionMock(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer)Constructor parameters in org.mockito.internal.creation.bytebuddy with type arguments of type MockedConstruction.Context Constructor Description InlineConstructionMockControl(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer, java.util.Map<java.lang.Class<?>,java.util.function.BiConsumer<java.lang.Object,MockedConstruction.Context>> interceptors)InlineConstructionMockControl(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer, java.util.Map<java.lang.Class<?>,java.util.function.BiConsumer<java.lang.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.Context Modifier and Type Method Description static <T> MockMaker.ConstructionMockControl<T>MockUtil. createConstructionMock(java.lang.Class<T> type, java.util.function.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.Context Modifier and Type Method Description default <T> MockMaker.ConstructionMockControl<T>MockMaker. createConstructionMock(java.lang.Class<T> type, java.util.function.Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory, java.util.function.Function<MockedConstruction.Context,MockHandler<T>> handlerFactory, MockedConstruction.MockInitializer<T> mockInitializer)If you want to provide your own implementation ofMockMakerthis 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.
-