Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockito/internal/configuration/
DMockInjectionTest.java10 import org.mockito.internal.configuration.injection.MockInjection;
34 MockInjection.onField((Field) null, this); in should_not_allow_null_on_field()
39 MockInjection.onFields((Set<Field>) null, this); in should_not_allow_null_on_fields()
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()
55MockInjection.onField(field("withConstructor"), this).withMocks(oneSetMock()).tryConstructorInject… in can_try_constructor_injection()
62MockInjection.onField(field("withoutConstructor"), this).withMocks(otherKindOfMocks()).tryConstruc… in should_not_fail_if_constructor_injection_is_not_possible()
69MockInjection.onField(field("withoutConstructor"), this).withMocks(oneSetMock()).tryPropertyOrFiel… in can_try_property_or_setter_injection()
76MockInjection.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/
DDefaultInjectionEngine.java10 import org.mockito.internal.configuration.injection.MockInjection;
20 MockInjection.onFields(needingInjection, testClassInstance) in injectMocksOnFields()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjection.java25 public class MockInjection { class