Package org.mockito
Interface MockedConstruction.MockInitializer<T>
- Type Parameters:
T
- the mock type.
- Enclosing interface:
MockedConstruction<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that consumes a newly created mock and the mock context.
Used to attach behaviours to new mocks.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prepare
(T mock, MockedConstruction.Context context) Configure the mock.
-
Method Details
-
prepare
Configure the mock.- Parameters:
mock
- the newly created mock.context
- the mock context.- Throws:
Throwable
- any exception that may be thrown.
-