Home
last modified time | relevance | path

Searched refs:fieldOwner (Results 1 – 6 of 6) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjection.java57 private final Object fieldOwner; field in MockInjection.OngoingMockInjection
61 private OngoingMockInjection(Field field, Object fieldOwner) { in OngoingMockInjection() argument
62 this(Collections.singleton(field), fieldOwner); in OngoingMockInjection()
65 private OngoingMockInjection(Set<Field> fields, Object fieldOwner) { in OngoingMockInjection() argument
66 this.fieldOwner = checkNotNull(fieldOwner, "fieldOwner"); in OngoingMockInjection()
92 injectionStrategies.process(field, fieldOwner, mocks); in apply()
93 postInjectionStrategies.process(field, fieldOwner, mocks); in apply()
DMockInjectionStrategy.java21 … protected boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandidates) { in nop()
86 …protected abstract boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandid…
88 …private boolean relayProcessToNextStrategy(Field field, Object fieldOwner, Set<Object> mockCandida…
89 return nextStrategy != null && nextStrategy.process(field, fieldOwner, mockCandidates);
DSpyOnInjectedFieldsHandler.java31 protected boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandidates) { in processInjection() argument
32 FieldReader fieldReader = new FieldReader(fieldOwner, field); in processInjection()
47 setField(fieldOwner, field, mock); in processInjection()
DConstructorInjection.java43 public boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandidates) { in processInjection() argument
46 …FieldInitializationReport report = new FieldInitializer(fieldOwner, field, simpleArgumentResolver)… in processInjection()
DPropertyAndSetterInjection.java93 private FieldInitializationReport initializeInjectMocksField(Field field, Object fieldOwner) { in initializeInjectMocksField() argument
95 return new FieldInitializer(fieldOwner, field).initialize(); in initializeInjectMocksField()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java33 private final Object fieldOwner; field in FieldInitializer
48 public FieldInitializer(Object fieldOwner, Field field) { in FieldInitializer() argument
49 this(fieldOwner, field, new NoArgConstructorInstantiator(fieldOwner, field)); in FieldInitializer()
63 … public FieldInitializer(Object fieldOwner, Field field, ConstructorArgumentResolver argResolver) { in FieldInitializer() argument
64 … this(fieldOwner, field, new ParameterizedConstructorInstantiator(fieldOwner, field, argResolver)); in FieldInitializer()
67 private FieldInitializer(Object fieldOwner, Field field, ConstructorInstantiator instantiator) { in FieldInitializer() argument
68 if(new FieldReader(fieldOwner, field).isNull()) { in FieldInitializer()
76 this.fieldOwner = fieldOwner; in FieldInitializer()
132 Object fieldInstance = field.get(fieldOwner); in acquireFieldInstance()