Searched refs:delegatedInstance (Results 1 – 2 of 2) sorted by relevance
49 public void validateDelegatedInstance(Class<?> classToMock, Object delegatedInstance) { in validateDelegatedInstance() argument50 if (classToMock == null || delegatedInstance == null) { in validateDelegatedInstance()53 if (delegatedInstance.getClass().isAssignableFrom(classToMock)) { in validateDelegatedInstance()54 throw mockedTypeIsInconsistentWithDelegatedInstanceType(classToMock, delegatedInstance); in validateDelegatedInstance()
696 … mockedTypeIsInconsistentWithDelegatedInstanceType(Class<?> mockedType, Object delegatedInstance) { in mockedTypeIsInconsistentWithDelegatedInstanceType() argument699 …"Mocked type must be: " + delegatedInstance.getClass().getSimpleName() + ", but is: " + mockedType… in mockedTypeIsInconsistentWithDelegatedInstanceType()