public class MockInjection
extends java.lang.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(java.lang.reflect.Field field,
java.lang.Object ofInstance)
Create a new configuration setup for a field
|
static MockInjection.OngoingMockInjection |
onFields(java.util.Set<java.lang.reflect.Field> fields,
java.lang.Object ofInstance)
Create a new configuration setup for fields
|
public static MockInjection.OngoingMockInjection onField(java.lang.reflect.Field field, java.lang.Object ofInstance)
field - Field needing mock injectionofInstance - Instance owning the fieldpublic static MockInjection.OngoingMockInjection onFields(java.util.Set<java.lang.reflect.Field> fields, java.lang.Object ofInstance)
fields - Fields needing mock injectionofInstance - Instance owning the field