Home
last modified time | relevance | path

Searched refs:expectedClass (Results 1 – 7 of 7) sorted by relevance

/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DIsInstanceOf.java13 private final Class<?> expectedClass; field in IsInstanceOf
22 public IsInstanceOf(Class<?> expectedClass) { in IsInstanceOf() argument
23 this.expectedClass = expectedClass; in IsInstanceOf()
24 this.matchableClass = matchableClass(expectedClass); in IsInstanceOf()
27 private static Class<?> matchableClass(Class<?> expectedClass) { in matchableClass() argument
28 if (boolean.class.equals(expectedClass)) return Boolean.class; in matchableClass()
29 if (byte.class.equals(expectedClass)) return Byte.class; in matchableClass()
30 if (char.class.equals(expectedClass)) return Character.class; in matchableClass()
31 if (double.class.equals(expectedClass)) return Double.class; in matchableClass()
32 if (float.class.equals(expectedClass)) return Float.class; in matchableClass()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DTestUtil.java29 public static <T> void assertInstanceOf(Class<? extends T> expectedClass, T object) { in assertInstanceOf() argument
31 assertTrue(expectedClass + " should be assignable from " + actualClass, in assertInstanceOf()
32 expectedClass.isAssignableFrom(actualClass)); in assertInstanceOf()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestClassOverride.java87 Class<?> expectedClass = this.classifier.getClass(); in verifyClassifier() local
92 if (expectedClass.isInstance(actualClassifier)) { in verifyClassifier()
109 "instance of " + expectedClass); in verifyClassifier()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestClassOverride.java86 Class<?> expectedClass = this.classifier.getClass(); in verifyClassifier() local
91 if (expectedClass.isInstance(actualClassifier)) { in verifyClassifier()
108 "instance of " + expectedClass); in verifyClassifier()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DBindingsTest.java85 Field field, Class<T> expectedClass, T value) throws IllegalAccessException { in checkConstantField() argument
86 assertEquals(expectedClass, field.getType()); in checkConstantField()
92 private static <T> void checkField(Field field, Class<T> expectedClass, in checkField() argument
94 assertEquals(expectedClass, field.getType()); in checkField()
/external/protobuf/objectivec/
DGPBUtilities.m912 Class expectedClass = Nil;
915 expectedClass = [GPBBoolArray class];
920 expectedClass = [GPBInt32Array class];
924 expectedClass = [GPBUInt32Array class];
929 expectedClass = [GPBInt64Array class];
933 expectedClass = [GPBUInt64Array class];
936 expectedClass = [GPBFloatArray class];
939 expectedClass = [GPBDoubleArray class];
945 expectedClass = [NSMutableDictionary class];
948 expectedClass = [GPBBoolArray class];
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DApplicationTest.java92 private void checkSystemService(String name, Class expectedClass) { in checkSystemService() argument
94 assertThat(systemService, instanceOf(expectedClass)); in checkSystemService()