Home
last modified time | relevance | path

Searched refs:mockSettings (Results 1 – 10 of 10) sorted by relevance

/external/mockito/src/org/mockito/internal/configuration/
DMockAnnotationProcessor.java18 MockSettings mockSettings = Mockito.withSettings(); in process() local
20 mockSettings.extraInterfaces(annotation.extraInterfaces()); in process()
23 mockSettings.name(field.getName()); in process()
25 mockSettings.name(annotation.name()); in process()
28 mockSettings.serializable(); in process()
32 mockSettings.defaultAnswer(annotation.answer().get()); in process()
33 return Mockito.mock(field.getType(), mockSettings); in process()
/external/mockito/src/org/mockito/internal/handler/
DMockHandlerImpl.java38 private final MockCreationSettings mockSettings; field in MockHandlerImpl
40 public MockHandlerImpl(MockCreationSettings mockSettings) { in MockHandlerImpl() argument
41 this.mockSettings = mockSettings; in MockHandlerImpl()
44 this.invocationContainerImpl = new InvocationContainerImpl(mockingProgress, mockSettings); in MockHandlerImpl()
93 Object ret = mockSettings.getDefaultAnswer().answer(invocation); in handle()
110 return mockSettings; in getMockSettings()
123 if (mockSettings.isStubOnly()) { in createVerificationData()
/external/mockito/src/org/mockito/internal/creation/
DMethodInterceptorFilter.java36 private final MockCreationSettings mockSettings; field in MethodInterceptorFilter
39 public MethodInterceptorFilter(InternalMockHandler handler, MockCreationSettings mockSettings) { in MethodInterceptorFilter() argument
41 this.mockSettings = mockSettings; in MethodInterceptorFilter()
73 if (mockSettings.isSerializable()) in createMockitoMethodProxy()
79 if (mockSettings.isSerializable()) { in createMockitoMethod()
DAcrossJVMSerializationFeature.java204 MockCreationSettings mockSettings = new MockUtil().getMockSettings(mockitoMock); in AcrossJVMMockSerializationProxy() local
206 this.typeToMock = mockSettings.getTypeToMock(); in AcrossJVMMockSerializationProxy()
207 this.extraInterfaces = mockSettings.getExtraInterfaces(); in AcrossJVMMockSerializationProxy()
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
DReturnsDeepStubs.java92 MockSettings mockSettings = in withSettingsUsing() local
97 return mockSettings in withSettingsUsing()
122 …CreationSettings mockSettings = (CreationSettings) new MockUtil().getMockHandler(mock).getMockSett…
123 return GenericMetadataSupport.inferFrom(mockSettings.getTypeToMock());
/external/mockito/src/org/mockito/internal/stubbing/
DInvocationContainerImpl.java34 …ublic InvocationContainerImpl(MockingProgress mockingProgress, MockCreationSettings mockSettings) { in InvocationContainerImpl() argument
36 this.registeredInvocations = createRegisteredInvocations(mockSettings); in InvocationContainerImpl()
136 private RegisteredInvocations createRegisteredInvocations(MockCreationSettings mockSettings) { in createRegisteredInvocations() argument
137 return mockSettings.isStubOnly() in createRegisteredInvocations()
/external/mockito/src/org/mockito/
DMockito.java1242 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock() argument
1243 return MOCKITO_CORE.mock(classToMock, mockSettings); in mock()
/external/robolectric/lib/test/
Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/ ...
/external/vogar/lib/
Dmockito-all-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/hamcrest/ org/ ...
/external/dexmaker/lib/
Dmockito-core-1.9.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/ ...