Home
last modified time | relevance | path

Searched refs:matchingMock (Results 1 – 2 of 2) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/configuration/injection/filter/
DTerminalMockCandidateFilter.java30 final Object matchingMock = mocks.iterator().next(); in filterCandidate() local
35 … 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()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java698 …public static MockitoException cannotInjectDependency(Field field, Object matchingMock, Exception … in cannotInjectDependency() argument
700 … "Mockito couldn't inject mock dependency '" + safelyGetMockName(matchingMock) + "' on field ", in cannotInjectDependency()