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 | Description |
|---|---|---|
static class |
MockInjection.OngoingMockInjection |
Ongoing configuration of the mock injector.
|
| Constructor | Description |
|---|---|
MockInjection() |
| Modifier and Type | Method | 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