Class MockInjection
java.lang.Object
org.mockito.internal.configuration.injection.MockInjection
Internal injection configuration utility.
Allow the user of this class to configure the way the injection of mocks will happen.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOngoing configuration of the mock injector. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new configuration setup for a fieldCreate a new configuration setup for fields
-
Method Details
-
onField
Create a new configuration setup for a field- Parameters:
field- Field needing mock injectionofInstance- Instance owning thefield- Returns:
- New configuration builder
-
onFields
Create a new configuration setup for fields- Parameters:
fields- Fields needing mock injectionofInstance- Instance owning thefield- Returns:
- New configuration builder
-