Searched refs:delegatedInstance (Results 1 - 3 of 3) sorted by relevance

/external/mockito/src/org/mockito/internal/util/
H A DMockCreationValidator.java45 public void validateDelegatedInstance(Class classToMock, Object delegatedInstance) { argument
46 if (classToMock == null || delegatedInstance == null) {
49 if (delegatedInstance.getClass().isAssignableFrom(classToMock)) {
50 new Reporter().mockedTypeIsInconsistentWithDelegatedInstanceType(classToMock, delegatedInstance);
/external/mockito/src/org/mockito/exceptions/
H A DReporter.java673 public void mockedTypeIsInconsistentWithDelegatedInstanceType(Class mockedType, Object delegatedInstance) { argument
676 "Mocked type must be: " + delegatedInstance.getClass().getSimpleName() + ", but is: " + mockedType.getSimpleName(),
678 " spy = mock( ->List.class<- , withSettings().delegatedInstance( ->new ArrayList()<- );",
680 " spy = mock( ->List.class<- , withSettings().delegatedInstance( ->new HashSet()<- );"
/external/dexmaker/lib/
H A Dmockito-core-1.9.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...

Completed in 78 milliseconds