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.
@FunctionalInterface public static interface MockedConstruction.MockInitializer<T>
Functional interface that consumes a newly created mock and the mock context.Used to attach behaviours to new mocks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
prepare(T mock, MockedConstruction.Context context)
Configure the mock.
-
-
-
Method Detail
-
prepare
void prepare(T mock, MockedConstruction.Context context) throws Throwable
Configure the mock.- Parameters:
mock
- the newly created mock.context
- the mock context.- Throws:
Throwable
- any exception that may be thrown.
-
-