public class MockInjection extends Object
Allow the user of this class to configure the way the injection of mocks will happen.
| Modifier and Type | Class and Description |
|---|---|
static class |
MockInjection.OngoingMockInjection
Ongoing configuration of the mock injector.
|
| Constructor and Description |
|---|
MockInjection() |
| Modifier and Type | Method and Description |
|---|---|
static MockInjection.OngoingMockInjection |
onField(Field field,
Object ofInstance)
Create a new configuration setup for a field
|
static MockInjection.OngoingMockInjection |
onFields(Set<Field> fields,
Object ofInstance)
Create a new configuration setup for fields
|
public static MockInjection.OngoingMockInjection onField(Field field, Object ofInstance)
field - Field needing mock injectionofInstance - Instance owning the fieldpublic static MockInjection.OngoingMockInjection onFields(Set<Field> fields, Object ofInstance)
fields - Fields needing mock injectionofInstance - Instance owning the fieldMockito, MIT License