Searched refs:MockInjection (Results 1 – 3 of 3) sorted by relevance
10 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()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()
10 import org.mockito.internal.configuration.injection.MockInjection;20 MockInjection.onFields(needingInjection, testClassInstance) in injectMocksOnFields()
25 public class MockInjection { class