Searched refs:isUnboxableToPrimitive (Results 1 – 2 of 2) 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 …]
|
/external/android-mock/src/com/google/android/testing/mocking/ |
D | AndroidMock.java | 2591 static boolean isUnboxableToPrimitive(Class<?> clazz, Object arg, boolean exactMatch) { in isUnboxableToPrimitive() method in AndroidMock 2663 exactMatch &= isUnboxableToPrimitive(params[i], arg, true); in getConstructorFor() 2664 compatibleMatch &= isUnboxableToPrimitive(params[i], arg, false); in getConstructorFor()
|