Home
last modified time | relevance | path

Searched refs:mockGenerator (Results 1 – 5 of 5) sorted by relevance

/external/android-mock/tests/com/google/android/testing/mocking/
DClassTypeTests.java158 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testClassHasDelegateMethods() local
160 mockGenerator.createMocksForClass(ClassHasDelegateMethods.class); in testClassHasDelegateMethods()
172 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testClassHasFinalMethods() local
174 mockGenerator.createMocksForClass(ClassHasFinalMethods.class); in testClassHasFinalMethods()
181 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testClassHasNoDefaultConstructor() local
183 mockGenerator.createMocksForClass(ClassHasNoDefaultConstructor.class); in testClassHasNoDefaultConstructor()
189 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testClassHasNoPublicConstructors() local
191 mockGenerator.createMocksForClass(ClassHasNoPublicConstructors.class); in testClassHasNoPublicConstructors()
201 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testClassHasOverloadedMethods() local
203 mockGenerator.createMocksForClass(ClassHasOverloadedMethods.class); in testClassHasOverloadedMethods()
[all …]
DAndroidMockGeneratorTest.java417 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testGenerateEmptySubclass() local
418 CtClass generatedInterface = mockGenerator.generateInterface(String.class, SdkVersion.UNKNOWN); in testGenerateEmptySubclass()
429 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testAddMethods() local
430 CtClass generatedInterface = mockGenerator.generateInterface(Number.class, SdkVersion.UNKNOWN); in testAddMethods()
432 mockGenerator.generateSkeletalClass(Number.class, generatedInterface, SdkVersion.UNKNOWN); in testAddMethods()
434 mockGenerator.addMethods(Number.class, generatedClass); in testAddMethods()
443 AndroidMockGenerator mockGenerator = getAndroidMockGenerator(); in testAddMethodsObjectClass() local
444 CtClass generatedInterface = mockGenerator.generateInterface(Object.class, SdkVersion.UNKNOWN); in testAddMethodsObjectClass()
446 mockGenerator.generateSkeletalClass(Object.class, generatedInterface, SdkVersion.UNKNOWN); in testAddMethodsObjectClass()
448 mockGenerator.addMethods(Object.class, generatedClass); in testAddMethodsObjectClass()
[all …]
DAndroidFrameworkMockGeneratorTest.java89 AndroidFrameworkMockGenerator mockGenerator = getMockGenerator(); in testCreateMockForClass() local
91 List<GeneratedClassFile> classes = mockGenerator.createMocksForClass(Object.class, version); in testCreateMockForClass()
135 AndroidFrameworkMockGenerator mockGenerator = getMockGenerator(); in testGetMocksForClass() local
137 List<GeneratedClassFile> createdMocks = mockGenerator.createMocksForClass( in testGetMocksForClass()
145 List<GeneratedClassFile> mocks = mockGenerator.getMocksForClass(Vector.class); in testGetMocksForClass()
/external/android-mock/src/com/google/android/testing/mocking/
DAndroidFrameworkMockGenerator.java92 AndroidMockGenerator mockGenerator = new AndroidMockGenerator(); in createMocksForClass() local
94 mocks.addAll(mockGenerator.createMocksForClass(clazz, version)); in createMocksForClass()
139 AndroidFrameworkMockGenerator mockGenerator = new AndroidFrameworkMockGenerator(); in generateMocks() local
140 List<Class<?>> classList = mockGenerator.getClassList(jar); in generateMocks()
143 classes.addAll(mockGenerator.createMocksForClass(clazz, version)); in generateMocks()
DUsesMocksProcessor.java61 private AndroidMockGenerator mockGenerator = new AndroidMockGenerator(); field in UsesMocksProcessor
238 return mockGenerator; in getAndroidMockGenerator()