Searched refs:classToMock (Results 1 – 4 of 4) sorted by relevance
/external/mockito/src/main/java/org/mockito/internal/util/ |
D | MockCreationValidator.java | 21 public void validateType(Class<?> classToMock) { in validateType() argument 22 TypeMockability typeMockability = MockUtil.typeMockabilityOf(classToMock); in validateType() 24 throw cannotMockClass(classToMock, typeMockability.nonMockableReason()); in validateType() 28 … public void validateExtraInterfaces(Class<?> classToMock, Collection<Class<?>> extraInterfaces) { in validateExtraInterfaces() argument 34 if (classToMock == i) { in validateExtraInterfaces() 35 throw extraInterfacesCannotContainMockedType(classToMock); in validateExtraInterfaces() 40 public void validateMockedType(Class<?> classToMock, Object spiedInstance) { in validateMockedType() argument 41 if (classToMock == null || spiedInstance == null) { in validateMockedType() 44 if (!classToMock.equals(spiedInstance.getClass())) { in validateMockedType() 45 throw mockedTypeIsInconsistentWithSpiedInstanceType(classToMock, spiedInstance); in validateMockedType() [all …]
|
D | MockNameImpl.java | 18 public MockNameImpl(String mockName, Class<?> classToMock) { in MockNameImpl() argument 20 this.mockName = toInstanceName(classToMock); in MockNameImpl()
|
/external/mockito/src/main/java/org/mockito/ |
D | Mockito.java | 1617 public static <T> T mock(Class<T> classToMock) { in mock() argument 1618 return mock(classToMock, withSettings()); in mock() 1636 public static <T> T mock(Class<T> classToMock, String name) { in mock() argument 1637 return mock(classToMock, withSettings() in mock() 1677 public static <T> T mock(Class<T> classToMock, Answer defaultAnswer) { in mock() argument 1678 return mock(classToMock, withSettings().defaultAnswer(defaultAnswer)); in mock() 1704 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock() argument 1705 return MOCKITO_CORE.mock(classToMock, mockSettings); in mock()
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 780 …ockitoException serializableWontWorkForObjectsThatDontImplementSerializable(Class<?> classToMock) { in serializableWontWorkForObjectsThatDontImplementSerializable() argument 782 …ettings().serializable()' however the type you are trying to mock '" + classToMock.getSimpleName()… in serializableWontWorkForObjectsThatDontImplementSerializable()
|