Searched refs:matchingMock (Results 1 – 2 of 2) sorted by relevance
30 final Object matchingMock = mocks.iterator().next(); in filterCandidate() local35 … if (!new BeanPropertySetter(injectee, candidateFieldToBeInjected).set(matchingMock)) { in filterCandidate()36 setField(injectee, candidateFieldToBeInjected,matchingMock); in filterCandidate()39 throw cannotInjectDependency(candidateFieldToBeInjected, matchingMock, e); in filterCandidate()41 return matchingMock; in filterCandidate()
698 …public static MockitoException cannotInjectDependency(Field field, Object matchingMock, Exception … in cannotInjectDependency() argument700 … "Mockito couldn't inject mock dependency '" + safelyGetMockName(matchingMock) + "' on field ", in cannotInjectDependency()