Searched refs:AndroidMock (Results 1 – 7 of 7) sorted by relevance
/external/android-mock/tests/com/google/android/testing/mocking/ |
D | AndroidMockTest.java | 103 assertTrue(AndroidMock.isUnboxableToPrimitive(Integer.TYPE, new Integer(42), true)); in testIsUnboxableToPrimitiveAllPrimitives() 104 assertTrue(AndroidMock.isUnboxableToPrimitive(Long.TYPE, new Long(42L), true)); in testIsUnboxableToPrimitiveAllPrimitives() 105 assertTrue(AndroidMock.isUnboxableToPrimitive(Short.TYPE, new Short((short) 42), true)); in testIsUnboxableToPrimitiveAllPrimitives() 106 assertTrue(AndroidMock.isUnboxableToPrimitive(Byte.TYPE, new Byte((byte) 42), true)); in testIsUnboxableToPrimitiveAllPrimitives() 107 assertTrue(AndroidMock.isUnboxableToPrimitive(Boolean.TYPE, Boolean.TRUE, true)); in testIsUnboxableToPrimitiveAllPrimitives() 108 assertTrue(AndroidMock.isUnboxableToPrimitive(Float.TYPE, new Float(42.0f), true)); in testIsUnboxableToPrimitiveAllPrimitives() 109 assertTrue(AndroidMock.isUnboxableToPrimitive(Double.TYPE, new Double(42.0), true)); in testIsUnboxableToPrimitiveAllPrimitives() 110 assertTrue(AndroidMock.isUnboxableToPrimitive(Character.TYPE, new Character('a'), true)); in testIsUnboxableToPrimitiveAllPrimitives() 112 assertTrue(AndroidMock.isUnboxableToPrimitive(Integer.TYPE, 42, true)); in testIsUnboxableToPrimitiveAllPrimitives() 113 assertTrue(AndroidMock.isUnboxableToPrimitive(Long.TYPE, 42L, true)); in testIsUnboxableToPrimitiveAllPrimitives() [all …]
|
D | ConstructorCreationTests.java | 74 AndroidMock.getConstructorFor(TestClass.class, args); in hasConstructor() 81 AndroidMock.getConstructorFor(TestClass.class, args); in doesNotHaveConstructor() 102 AndroidMock.getConstructorFor(TestClass.class, args); in checkConstructor()
|
/external/android-mock/livetests/com/google/android/testing/mocking/test/ |
D | MockingTest.java | 20 import com.google.android.testing.mocking.AndroidMock; 40 Context mockContext = AndroidMock.createMock(Context.class); in testFrameworkMock() 51 ClassToMock myMockClass = AndroidMock.createMock(ClassToMock.class); in testNormalMock() 52 AndroidMock.expect(myMockClass.getString()).andReturn( in testNormalMock() 54 AndroidMock.expect(myMockClass.getInt()).andReturn(42); in testNormalMock() 55 AndroidMock.replay(myMockClass); in testNormalMock() 59 AndroidMock.verify(myMockClass); in testNormalMock()
|
/external/android-mock/src/com/google/android/testing/mocking/ |
D | GeneratedMockJar.readme | 27 mockObject = AndroidMock.createMock(MyClass.class); 28 AndroidMock.expect(mockObject.foo(0)).andReturn(42); 29 AndroidMock.replay(mockObject); assertEquals(42, mockObject.foo(0)); 30 AndroidMock.verify(mockObject);
|
D | UsesMocksProcessor.java | 174 if (!AndroidMock.isAndroidClass(clazz) || regenerateFrameworkMocks) { in getClassMocks()
|
D | AndroidMock.java | 80 public class AndroidMock { class 81 private AndroidMock() { in AndroidMock() method in AndroidMock
|
/external/android-mock/ |
D | Android.mk | 26 $(LOCAL_MOCKING_PATH)/AndroidMock.java \
|