Home
last modified time | relevance | path

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

/external/mockito/src/main/java/org/mockito/internal/util/
DMockCreationValidator.java49 public void validateDelegatedInstance(Class<?> classToMock, Object delegatedInstance) { in validateDelegatedInstance() argument
50 if (classToMock == null || delegatedInstance == null) { in validateDelegatedInstance()
53 if (delegatedInstance.getClass().isAssignableFrom(classToMock)) { in validateDelegatedInstance()
54 throw mockedTypeIsInconsistentWithDelegatedInstanceType(classToMock, delegatedInstance); in validateDelegatedInstance()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java715 … mockedTypeIsInconsistentWithDelegatedInstanceType(Class<?> mockedType, Object delegatedInstance) { in mockedTypeIsInconsistentWithDelegatedInstanceType() argument
718 …"Mocked type must be: " + delegatedInstance.getClass().getSimpleName() + ", but is: " + mockedType… in mockedTypeIsInconsistentWithDelegatedInstanceType()