Home
last modified time | relevance | path

Searched refs:onField (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/configuration/
DMockInjectionTest.java34 MockInjection.onField((Field) null, this); in should_not_allow_null_on_field()
44 MockInjection.onField(field("withConstructor"), null); in should_not_allow_null_on_instance_owning_the_field()
49 MockInjection.onField(field("withConstructor"), this).withMocks(null); in should_not_allow_null_on_mocks()
55 …MockInjection.onField(field("withConstructor"), this).withMocks(oneSetMock()).tryConstructorInject… in can_try_constructor_injection()
62 …MockInjection.onField(field("withoutConstructor"), this).withMocks(otherKindOfMocks()).tryConstruc… in should_not_fail_if_constructor_injection_is_not_possible()
69 …MockInjection.onField(field("withoutConstructor"), this).withMocks(oneSetMock()).tryPropertyOrFiel… in can_try_property_or_setter_injection()
76 …MockInjection.onField(field("withoutConstructor"), this).withMocks(otherKindOfMocks()).tryProperty… in should_not_fail_if_property_or_field_injection_is_not_possible()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjectionStrategy.java67 public boolean process(Field onField, Object fieldOwnedBy, Set<Object> mockCandidates) {
68 if(processInjection(onField, fieldOwnedBy, mockCandidates)) {
71 return relayProcessToNextStrategy(onField, fieldOwnedBy, mockCandidates);
DMockInjection.java35 public static OngoingMockInjection onField(Field field, Object ofInstance) { in onField() method in MockInjection