Home
last modified time | relevance | path

Searched refs:getTypeToMock (Results 1 – 15 of 15) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DSubclassByteBuddyMockMaker.java55 " class to mock : " + describeClass(settings.getTypeToMock()), in createMock()
72 settings.getTypeToMock(), in createMockType()
86 Class<T> typeToMock = settings.getTypeToMock(); in ensureMockIsAssignableToMockedType()
91 if (mockFeatures.getTypeToMock().isArray()) { in prettifyFailure()
93 "Mockito cannot mock arrays: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
97 if (Modifier.isPrivate(mockFeatures.getTypeToMock().getModifiers())) { in prettifyFailure()
99 "Mockito cannot mock this class: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
105 "Mockito cannot mock this class: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
DInlineByteBuddyMockMaker.java202 settings.getTypeToMock(), in createMockType()
213 if (mockFeatures.getTypeToMock().isArray()) { in prettifyFailure()
215 "Arrays cannot be mocked: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
219 if (Modifier.isFinal(mockFeatures.getTypeToMock().getModifiers())) { in prettifyFailure()
221 "Mockito cannot mock this class: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
232 if (Modifier.isPrivate(mockFeatures.getTypeToMock().getModifiers())) { in prettifyFailure()
234 "Mockito cannot mock this class: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
243 "Mockito cannot mock this class: " + mockFeatures.getTypeToMock() + ".", in prettifyFailure()
DByteBuddyCrossClassLoaderSerializationSupport.java118 … String mockedType = MockUtil.getMockSettings(mockitoMock).getTypeToMock().getCanonicalName(); in writeReplace()
184 this.typeToMock = mockSettings.getTypeToMock(); in CrossClassLoaderSerializationProxy()
/external/mockito/src/test/java/org/mockito/internal/util/
DMockSettingsTest.java26 assertEquals(List.class, settings.getTypeToMock()); in public_api_for_creating_settings()
DDefaultMockingDetailsTest.java105 assertEquals(Foo.class, mockingDetails(foo).getMockCreationSettings().getTypeToMock()); in provides_mock_creation_settings()
106 assertEquals(Bar.class, mockingDetails(bar).getMockCreationSettings().getTypeToMock()); in provides_mock_creation_settings()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DTriesToReturnSelf.java20 Class<?> mockType = MockUtil.getMockHandler(mock).getMockSettings().getTypeToMock(); in answer()
DReturnsEmptyValues.java62 …return "Mock for " + MockUtil.getMockSettings(mock).getTypeToMock().getSimpleName() + ", hashCode:… in answer()
DReturnsDeepStubs.java126 return GenericMetadataSupport.inferFrom(mockSettings.getTypeToMock()); in actualParameterizedType()
/external/mockito/src/main/java/org/mockito/mock/
DMockCreationSettings.java28 Class<T> getTypeToMock(); in getTypeToMock() method
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java206 Class<?> superClass = settings.getTypeToMock(); in getMethodsToProxy()
220 for (Class<?> i : settings.getTypeToMock().getInterfaces()) { in getMethodsToProxy()
247 Class<T> typeToMock = settings.getTypeToMock(); in createMock()
/external/mockito/src/main/java/org/mockito/internal/listeners/
DVerificationStartedNotifier.java60 Class originalType = originalSettings.getTypeToMock(); in assertCompatibleTypes()
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
DCreationSettings.java63 public Class<T> getTypeToMock() { in getTypeToMock() method in CreationSettings
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DInlineStaticMockMaker.java140 Class<T> typeToMock = settings.getTypeToMock(); in createMock()
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DDexmakerMockMaker.java84 Class<T> typeToMock = settings.getTypeToMock(); in createMock()
/external/mockito/src/main/java/org/mockito/internal/creation/
DMockSettingsImpl.java220 public Class<T> getTypeToMock() { in getTypeToMock() method in MockSettingsImpl