Searched refs:typeToMock (Results 1 – 7 of 7) sorted by relevance
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 158 return typeToMock; in getTypeToMock() 161 public MockCreationSettings<T> confirm(Class<T> typeToMock) { in confirm() argument 162 return validatedSettings(typeToMock, this); in confirm() 165 …private static <T> CreationSettings<T> validatedSettings(Class<T> typeToMock, CreationSettings<T> … in validatedSettings() argument 168 validator.validateType(typeToMock); in validatedSettings() 169 validator.validateExtraInterfaces(typeToMock, source.getExtraInterfaces()); in validatedSettings() 170 validator.validateMockedType(typeToMock, source.getSpiedInstance()); in validatedSettings() 179 settings.setMockName(new MockNameImpl(source.getName(), typeToMock)); in validatedSettings() 180 settings.setTypeToMock(typeToMock); in validatedSettings()
|
/external/mockito/src/main/java/org/mockito/internal/creation/settings/ |
D | CreationSettings.java | 23 protected Class<T> typeToMock; field in CreationSettings 40 this.typeToMock = copy.typeToMock; in CreationSettings() 54 return typeToMock; in getTypeToMock() 57 public CreationSettings<T> setTypeToMock(Class<T> typeToMock) { in setTypeToMock() argument 58 this.typeToMock = typeToMock; in setTypeToMock()
|
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/ |
D | ByteBuddyCrossClassLoaderSerializationSupport.java | 161 private final Class<?> typeToMock; field in ByteBuddyCrossClassLoaderSerializationSupport.CrossClassLoaderSerializationProxy 184 this.typeToMock = mockSettings.getTypeToMock(); in CrossClassLoaderSerializationProxy() 199 …tInputStream objectInputStream = new MockitoMockObjectInputStream(bis, typeToMock, extraInterfaces… in readResolve() 209 …"Mockito mock cannot be deserialized to a mock of '" + typeToMock.getCanonicalName() + "'. The err… in readResolve() 241 private final Class<?> typeToMock; field in ByteBuddyCrossClassLoaderSerializationSupport.MockitoMockObjectInputStream 244 …public MockitoMockObjectInputStream(InputStream in, Class<?> typeToMock, Set<Class<?>> extraInterf… in MockitoMockObjectInputStream() argument 246 this.typeToMock = typeToMock; in MockitoMockObjectInputStream() 274 .setTypeToMock(typeToMock) in resolveClass()
|
D | SubclassByteBuddyMockMaker.java | 85 Class<T> typeToMock = settings.getTypeToMock(); in ensureMockIsAssignableToMockedType() local 86 return typeToMock.cast(mock); in ensureMockIsAssignableToMockedType()
|
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/ |
D | DexmakerMockMaker.java | 40 Class<T> typeToMock = settings.getTypeToMock(); in createMock() local 45 if (typeToMock.isInterface()) { in createMock() 48 classesToMock[0] = typeToMock; in createMock() 52 …T mock = (T) Proxy.newProxyInstance(typeToMock.getClassLoader(), classesToMock, invocationHandler); in createMock() 58 Class<? extends T> proxyClass = ProxyBuilder.forClass(typeToMock) in createMock() 67 throw new MockitoException("Failed to mock " + typeToMock, e); in createMock()
|
/external/dexmaker/ |
D | bug-8108255.patch | 6 classesToMock[0] = typeToMock; 9 @SuppressWarnings("unchecked") // newProxyInstance returns the type of typeToMock 10 - T mock = (T) Proxy.newProxyInstance(typeToMock.getClassLoader(),
|
/external/mockito/src/main/java/org/mockito/internal/ |
D | MockitoCore.java | 55 public boolean isTypeMockable(Class<?> typeToMock) { in isTypeMockable() argument 56 return typeMockabilityOf(typeToMock).mockable(); in isTypeMockable() 59 public <T> T mock(Class<T> typeToMock, MockSettings settings) { in mock() argument 64 MockCreationSettings<T> creationSettings = impl.confirm(typeToMock); in mock()
|