Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericReflectionTestsBase.java65 public static void assertInstanceOf(Class<?> expectedClass, Object actual) { in assertInstanceOf() argument
66 …True(actual.getClass().getName() + " is not instance of :" + expectedClass.getName(), expectedClass in assertInstanceOf()
/libcore/luni/src/main/java/java/security/
DProvider.java1096 final Class<?> expectedClass = constructorParameterClasses.get(type); in newInstance() local
1097 if (expectedClass == null) { in newInstance()
1101 if (!expectedClass.isAssignableFrom(constructorParameter.getClass())) { in newInstance()
1103 + expectedClass.getName() + " but was " in newInstance()
1106 return newInstanceWithParameter(constructorParameter, expectedClass); in newInstance()