Uses of Interface
org.mockito.mock.MockCreationSettings
-
Packages that use MockCreationSettings Package Description org.mockito Mockito is a mock library for java - seeMockito
class for usage.org.mockito.internal.creation Mock object creation.org.mockito.internal.creation.bytebuddy ByteBuddy related stuff.org.mockito.internal.creation.instance org.mockito.internal.creation.settings org.mockito.internal.handler org.mockito.internal.invocation Invocation machinery and related classes.org.mockito.internal.junit JUnit integration support classes.org.mockito.internal.listeners org.mockito.internal.progress Mocking progress stateful classes.org.mockito.internal.stubbing Stubbing logic.org.mockito.internal.stubbing.defaultanswers Implementations of default Answers.org.mockito.internal.util Static utilsorg.mockito.invocation Public API related to mock method invocations.org.mockito.listeners Public classes relative to the listener APIs.org.mockito.plugins Mockito plugins allow customization of behavior. -
-
Uses of MockCreationSettings in org.mockito
Methods in org.mockito that return MockCreationSettings Modifier and Type Method Description <T> MockCreationSettings<T>
MockSettings. build(java.lang.Class<T> typeToMock)
Creates immutable view of mock settings used later by Mockito.MockCreationSettings<?>
MockingDetails. getMockCreationSettings()
Returns various mock settings provided when the mock was created, for example: mocked class, mock name (if any), any extra interfaces (if any), etc. -
Uses of MockCreationSettings in org.mockito.internal.creation
Classes in org.mockito.internal.creation that implement MockCreationSettings Modifier and Type Class Description class
MockSettingsImpl<T>
Methods in org.mockito.internal.creation that return MockCreationSettings Modifier and Type Method Description <T> MockCreationSettings<T>
MockSettingsImpl. build(java.lang.Class<T> typeToMock)
-
Uses of MockCreationSettings in org.mockito.internal.creation.bytebuddy
Fields in org.mockito.internal.creation.bytebuddy declared as MockCreationSettings Modifier and Type Field Description private MockCreationSettings
MockMethodInterceptor. mockCreationSettings
Methods in org.mockito.internal.creation.bytebuddy with parameters of type MockCreationSettings Modifier and Type Method Description <T> T
ByteBuddyMockMaker. createMock(MockCreationSettings<T> settings, MockHandler handler)
<T> T
InlineByteBuddyMockMaker. createMock(MockCreationSettings<T> settings, MockHandler handler)
<T> T
SubclassByteBuddyMockMaker. createMock(MockCreationSettings<T> settings, MockHandler handler)
<T> java.lang.Class<? extends T>
ByteBuddyMockMaker. createMockType(MockCreationSettings<T> creationSettings)
<T> java.lang.Class<? extends T>
ClassCreatingMockMaker. createMockType(MockCreationSettings<T> settings)
<T> java.lang.Class<? extends T>
InlineByteBuddyMockMaker. createMockType(MockCreationSettings<T> settings)
<T> java.lang.Class<? extends T>
SubclassByteBuddyMockMaker. createMockType(MockCreationSettings<T> settings)
private static <T> T
SubclassByteBuddyMockMaker. ensureMockIsAssignableToMockedType(MockCreationSettings<T> settings, T mock)
private <T> java.lang.RuntimeException
InlineByteBuddyMockMaker. prettifyFailure(MockCreationSettings<T> mockFeatures, java.lang.Exception generationFailed)
private <T> java.lang.RuntimeException
SubclassByteBuddyMockMaker. prettifyFailure(MockCreationSettings<T> mockFeatures, java.lang.Exception generationFailed)
void
ByteBuddyMockMaker. resetMock(java.lang.Object mock, MockHandler newHandler, MockCreationSettings settings)
void
InlineByteBuddyMockMaker. resetMock(java.lang.Object mock, MockHandler newHandler, MockCreationSettings settings)
void
SubclassByteBuddyMockMaker. resetMock(java.lang.Object mock, MockHandler newHandler, MockCreationSettings settings)
Constructors in org.mockito.internal.creation.bytebuddy with parameters of type MockCreationSettings Constructor Description MockMethodInterceptor(MockHandler handler, MockCreationSettings mockCreationSettings)
-
Uses of MockCreationSettings in org.mockito.internal.creation.instance
Methods in org.mockito.internal.creation.instance with parameters of type MockCreationSettings Modifier and Type Method Description Instantiator
DefaultInstantiatorProvider. getInstantiator(MockCreationSettings<?> settings)
Instantiator
InstantiatorProvider2Adapter. getInstantiator(MockCreationSettings<?> settings)
Instantiator
InstantiatorProviderAdapter. getInstantiator(MockCreationSettings<?> settings)
-
Uses of MockCreationSettings in org.mockito.internal.creation.settings
Classes in org.mockito.internal.creation.settings that implement MockCreationSettings Modifier and Type Class Description class
CreationSettings<T>
-
Uses of MockCreationSettings in org.mockito.internal.handler
Fields in org.mockito.internal.handler declared as MockCreationSettings Modifier and Type Field Description private MockCreationSettings<T>
MockHandlerImpl. mockSettings
Methods in org.mockito.internal.handler that return MockCreationSettings Modifier and Type Method Description MockCreationSettings<T>
InvocationNotifierHandler. getMockSettings()
MockCreationSettings<T>
MockHandlerImpl. getMockSettings()
MockCreationSettings<T>
NullResultGuardian. getMockSettings()
Methods in org.mockito.internal.handler with parameters of type MockCreationSettings Modifier and Type Method Description static <T> MockHandler<T>
MockHandlerFactory. createMockHandler(MockCreationSettings<T> settings)
Constructors in org.mockito.internal.handler with parameters of type MockCreationSettings Constructor Description InvocationNotifierHandler(MockHandler<T> mockHandler, MockCreationSettings<T> settings)
MockHandlerImpl(MockCreationSettings<T> mockSettings)
-
Uses of MockCreationSettings in org.mockito.internal.invocation
Methods in org.mockito.internal.invocation with parameters of type MockCreationSettings Modifier and Type Method Description private static InterceptedInvocation
DefaultInvocationFactory. createInvocation(java.lang.Object mock, java.lang.reflect.Method invokedMethod, java.lang.Object[] arguments, RealMethod realMethod, MockCreationSettings settings)
static InterceptedInvocation
DefaultInvocationFactory. createInvocation(java.lang.Object mock, java.lang.reflect.Method invokedMethod, java.lang.Object[] arguments, RealMethod realMethod, MockCreationSettings settings, Location location)
Invocation
DefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, java.util.concurrent.Callable realMethod, java.lang.Object... args)
private Invocation
DefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, RealMethod superMethod, java.lang.Object[] args)
Invocation
DefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, InvocationFactory.RealMethodBehavior realMethod, java.lang.Object... args)
private static MockitoMethod
DefaultInvocationFactory. createMockitoMethod(java.lang.reflect.Method method, MockCreationSettings settings)
-
Uses of MockCreationSettings in org.mockito.internal.junit
Fields in org.mockito.internal.junit with type parameters of type MockCreationSettings Modifier and Type Field Description private java.util.Map<java.lang.Object,MockCreationSettings>
UniversalTestListener. mocks
Methods in org.mockito.internal.junit with parameters of type MockCreationSettings Modifier and Type Method Description void
MismatchReportingTestListener. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
void
NoOpTestListener. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
void
StrictStubsRunnerTestListener. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
void
UniversalTestListener. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
void
UnnecessaryStubbingsReporter. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
-
Uses of MockCreationSettings in org.mockito.internal.listeners
Fields in org.mockito.internal.listeners declared as MockCreationSettings Modifier and Type Field Description private MockCreationSettings
StubbingLookupNotifier.Event. mockSettings
Methods in org.mockito.internal.listeners that return MockCreationSettings Modifier and Type Method Description MockCreationSettings
StubbingLookupNotifier.Event. getMockSettings()
Methods in org.mockito.internal.listeners with parameters of type MockCreationSettings Modifier and Type Method Description (package private) static void
VerificationStartedNotifier. assertCompatibleTypes(java.lang.Object mock, MockCreationSettings originalSettings)
Constructors in org.mockito.internal.listeners with parameters of type MockCreationSettings Constructor Description Event(Invocation invocation, Stubbing stubbing, java.util.Collection<Stubbing> allStubbings, MockCreationSettings mockSettings)
-
Uses of MockCreationSettings in org.mockito.internal.progress
Methods in org.mockito.internal.progress with parameters of type MockCreationSettings Modifier and Type Method Description void
MockingProgress. mockingStarted(java.lang.Object mock, MockCreationSettings settings)
void
MockingProgressImpl. mockingStarted(java.lang.Object mock, MockCreationSettings settings)
-
Uses of MockCreationSettings in org.mockito.internal.stubbing
Methods in org.mockito.internal.stubbing with parameters of type MockCreationSettings Modifier and Type Method Description private RegisteredInvocations
InvocationContainerImpl. createRegisteredInvocations(MockCreationSettings mockSettings)
static Strictness
StrictnessSelector. determineStrictness(Stubbing stubbing, MockCreationSettings mockSettings, Strictness testLevelStrictness)
Determines the actual strictness in the following importance order: 1st - strictness configured when declaring stubbing; 2nd - strictness configured at mock level; 3rd - strictness configured at test level (rule, mockito session)Constructors in org.mockito.internal.stubbing with parameters of type MockCreationSettings Constructor Description InvocationContainerImpl(MockCreationSettings mockSettings)
-
Uses of MockCreationSettings in org.mockito.internal.stubbing.defaultanswers
Methods in org.mockito.internal.stubbing.defaultanswers with parameters of type MockCreationSettings Modifier and Type Method Description private MockSettings
ReturnsDeepStubs. propagateSerializationSettings(MockSettings mockSettings, MockCreationSettings parentMockSettings)
private MockSettings
ReturnsDeepStubs. withSettingsUsing(GenericMetadataSupport returnTypeGenericMetadata, MockCreationSettings parentMockSettings)
-
Uses of MockCreationSettings in org.mockito.internal.util
Methods in org.mockito.internal.util that return MockCreationSettings Modifier and Type Method Description MockCreationSettings<?>
DefaultMockingDetails. getMockCreationSettings()
static MockCreationSettings
MockUtil. getMockSettings(java.lang.Object mock)
Methods in org.mockito.internal.util with parameters of type MockCreationSettings Modifier and Type Method Description static <T> T
MockUtil. createMock(MockCreationSettings<T> settings)
-
Uses of MockCreationSettings in org.mockito.invocation
Methods in org.mockito.invocation that return MockCreationSettings Modifier and Type Method Description MockCreationSettings<T>
MockHandler. getMockSettings()
Read-only settings the mock object was created with.Methods in org.mockito.invocation with parameters of type MockCreationSettings Modifier and Type Method Description Invocation
InvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, java.util.concurrent.Callable realMethod, java.lang.Object... args)
Invocation
InvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, InvocationFactory.RealMethodBehavior realMethod, java.lang.Object... args)
Creates instance of anInvocation
object. -
Uses of MockCreationSettings in org.mockito.listeners
Methods in org.mockito.listeners that return MockCreationSettings Modifier and Type Method Description MockCreationSettings
StubbingLookupEvent. getMockSettings()
Methods in org.mockito.listeners with parameters of type MockCreationSettings Modifier and Type Method Description void
MockCreationListener. onMockCreated(java.lang.Object mock, MockCreationSettings settings)
Mock object was just created. -
Uses of MockCreationSettings in org.mockito.plugins
Methods in org.mockito.plugins with parameters of type MockCreationSettings Modifier and Type Method Description <T> T
MockMaker. createMock(MockCreationSettings<T> settings, MockHandler handler)
If you want to provide your own implementation ofMockMaker
this method should: Create a proxy object that implementssettings.typeToMock
and potentially alsosettings.extraInterfaces
. You may use the information fromsettings
to create/configure your proxy object. Your proxy object should carry thehandler
with it.Instantiator
InstantiatorProvider. getInstantiator(MockCreationSettings<?> settings)
Deprecated., seeInstantiatorProvider
.Instantiator
InstantiatorProvider2. getInstantiator(MockCreationSettings<?> settings)
Returns an instantiator, used to create new class instances.void
MockMaker. resetMock(java.lang.Object mock, MockHandler newHandler, MockCreationSettings settings)
Replaces the existing handler onmock
withnewHandler
.
-