|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockito.internal.configuration.injection.MockInjection
public class MockInjection
Internal injection configuration utility.
Allow the user of this class to configure the way the injection of mocks will happen.
Nested Class Summary | |
---|---|
static class |
MockInjection.OngoingMockInjection
Ongoing configuration of the mock injector. |
Constructor Summary | |
---|---|
MockInjection()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockInjection()
Method Detail |
---|
public static MockInjection.OngoingMockInjection onField(java.lang.reflect.Field field, java.lang.Object ofInstance)
field
- Field needing mock injectionofInstance
- Instance owning the field
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |