Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 43) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DConstructorTest.java26 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getExceptionTypes() local
27 Class[] exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes()
32 exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes()
39 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes() local
40 assertEquals(0, constructor.getParameterTypes().length); in test_getParameterTypes()
43 constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes()
44 Class[] parameters = constructor.getParameterTypes(); in test_getParameterTypes()
49 parameters = constructor.getParameterTypes(); in test_getParameterTypes()
56 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterCount() local
57 assertEquals(0, constructor.getParameterCount()); in test_getParameterCount()
[all …]
DParameterTest.java109 Constructor<?> constructor = SingleParameter.class.getDeclaredConstructor(String.class); in testSingleParameterConstructor() local
110 checkSingleStringParameter(constructor); in testSingleParameterConstructor()
132 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testSingleParameterConstructor_withMetadata() local
133 checkSingleStringParameter_withMetadata(constructor); in testSingleParameterConstructor_withMetadata()
165 Constructor<?> constructor = GenericParameter.class.getDeclaredConstructor(Function.class); in testGenericParameterConstructor() local
166 checkGenericParameter(constructor); in testGenericParameterConstructor()
191 Constructor<?> constructor = clazz.getDeclaredConstructor(Function.class); in testGenericParameterConstructor_withMetadata() local
192 checkGenericParameter_withMetadata(constructor); in testGenericParameterConstructor_withMetadata()
225 Constructor<?> constructor = in testTwoParameterConstructor() local
227 checkTwoParameters(constructor); in testTwoParameterConstructor()
[all …]
DGenericExceptionsTest.java43 Constructor constructor = Thrower.class.getConstructor(); in testGenericExceptionsOfConstructorsWithTypeParameters() local
45 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithTypeParameters()
49 Constructor constructor = Thrower.class.getConstructor(List.class); in testGenericExceptionsOfConstructorsWithGenericParameters() local
51 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithGenericParameters()
55 Constructor constructor = ThrowerT.class.getConstructor(); in testConstructorThrowingTypeVariable() local
56 TypeVariable typeVariable = getOnlyValue(constructor.getGenericExceptionTypes(), in testConstructorThrowingTypeVariable()
DGenericSignatureFormatErrorTest.java33 public void constructor() { in constructor() method in GenericSignatureFormatErrorTest
DClassLoaderReflectionTest.java108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; in testConstructorGenericType() local
109 Type[] parameters = constructor.getGenericParameterTypes(); in testConstructorGenericType()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DConstructorTest.java42 Constructor<Type> constructor = Type.class.getConstructor(); in testConstructorAnnotations() local
43 checkAnnotatedElementPresentMethods(constructor, AnnotationA.class, AnnotationC.class); in testConstructorAnnotations()
87 Constructor constructor = getConstructor(c, constructorArgCount); in checkDeclaredAnnotation() local
90 assertIsAnnotationPresent(constructor, annotationType, in checkDeclaredAnnotation()
94 assertGetDeclaredAnnotation(constructor, annotationType, expectedAnnotationString); in checkDeclaredAnnotation()
121 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetDeclaredAnnotationsByType() local
123 constructor, annotationType, expectedAnnotationStrings); in assertGetDeclaredAnnotationsByType()
147 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetAnnotationsByType() local
149 constructor, annotationType, expectedAnnotationStrings); in assertGetAnnotationsByType()
DExecutableParameterTest.java235 Constructor<InnerClass> constructor = in testImplicitConstructorParameters_innerClass() local
240 Annotation[][] annotations = getParameterAnnotations(constructor, 2); in testImplicitConstructorParameters_innerClass()
257 Constructor<? extends AnonymousBaseClass> constructor = in testImplicitConstructorParameters_anonymousClass() local
261 Annotation[][] annotations = getParameterAnnotations(constructor, 2); in testImplicitConstructorParameters_anonymousClass()
276 Constructor<StaticInnerClass> constructor = in testImplicitConstructorParameters_staticInnerClass() local
278 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_staticInnerClass()
281 Annotation[][] annotations = getParameterAnnotations(constructor, 1); in testImplicitConstructorParameters_staticInnerClass()
DAnnotatedElementParameterTest.java453 Constructor<InnerClass> constructor = in testImplicitConstructorParameters_innerClass() local
456 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_innerClass()
494 Constructor<? extends AnonymousBaseClass> constructor = in testImplicitConstructorParameters_anonymousClass() local
497 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_anonymousClass()
533 Constructor<StaticInnerClass> constructor = in testImplicitConstructorParameters_staticInnerClass() local
535 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_staticInnerClass()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DTypeVariableTest.java68 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testSimpleTypeVariableOnConstructor() local
69 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testSimpleTypeVariableOnConstructor()
72 assertEquals(constructor, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnConstructor()
132 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testMultipleTypeVariablesOnConstructor() local
134 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testMultipleTypeVariablesOnConstructor()
137 assertEquals(constructor, typeParameters[0].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
142 assertEquals(constructor, typeParameters[1].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
147 assertEquals(constructor, typeParameters[2].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
DConstructorTest.java153 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class in test_hashCode() local
157 ConstructorTestHelper.class.getName().hashCode(), constructor in test_hashCode()
326 … Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class in test_getGenericParameterTypes() local
328 types = constructor.getGenericParameterTypes(); in test_getGenericParameterTypes()
357 … Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class in test_getGenericExceptionTypes() local
359 types = constructor.getGenericExceptionTypes(); in test_getGenericExceptionTypes()
/libcore/luni/src/test/java/libcore/java/io/
DConsoleTest.java40 Constructor<Console> constructor = in createConsole() local
42 constructor.setAccessible(true); in createConsole()
43 return constructor.newInstance(inStream, outStream); in createConsole()
/libcore/dom/src/test/java/org/w3c/domts/
DXalanDOMTestDocumentBuilderFactory.java71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); in createXPathEvaluator() local
72 return constructor.newInstance(new Object[] {doc}); in createXPathEvaluator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DConsoleTest.java49 Constructor<Console> constructor = in setUp() local
51 constructor.setAccessible(true); in setUp()
52 console = constructor.newInstance(in, out); in setUp()
/libcore/benchmarks/src/benchmarks/
DDeepArrayOpsBenchmark.java111 Constructor<V> constructor = type.getDeclaredConstructor(String.class); in new16ElementArray() local
113 array[i] = (T) constructor.newInstance(String.valueOf(i + 1000)); in new16ElementArray()
DXmlParseBenchmark.java134 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull() argument
139 XmlPullParser xmlPullParser = constructor.newInstance(); in testXmlPull()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java458 Constructor<T> constructor = null; in engineGetKeySpec() local
461 constructor = keySpec.getConstructor(TestPrivateKey.class); in engineGetKeySpec()
469 constructor = keySpec.getConstructor(TestPublicKey.class); in engineGetKeySpec()
477 if (constructor == null) { in engineGetKeySpec()
482 return constructor.newInstance(key); in engineGetKeySpec()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DWrongMethodTypeExceptionTest.java33 public void constructor() { in constructor() method in WrongMethodTypeExceptionTest
DLambdaConversionExceptionTest.java35 public void constructor() { in constructor() method in LambdaConversionExceptionTest
/libcore/luni/src/test/resources/tests/api/java/io/
DsameFieldNames.smali13 .method public constructor <init>()V
/libcore/luni/src/test/java/libcore/javax/xml/datatype/
DDatatypeConfigurationExceptionTest.java30 public void constructor() { in constructor() method in DatatypeConfigurationExceptionTest
/libcore/luni/src/test/java/libcore/javax/xml/transform/dom/
DDOMSourceTest.java34 public void constructor() { in constructor() method in DOMSourceTest
/libcore/luni/src/test/java/libcore/javax/xml/transform/
DTransformerFactoryConfigurationErrorTest.java31 public void constructor() { in constructor() method in TransformerFactoryConfigurationErrorTest
DTransformerConfigurationExceptionTest.java32 public void constructor() { in constructor() method in TransformerConfigurationExceptionTest
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java54 Constructor constructor = klass.getConstructor(); in timeClass_newInstance() local
56 constructor.newInstance(); in timeClass_newInstance()
/libcore/luni/src/test/java/libcore/java/lang/
DBootstrapMethodErrorTest.java33 public void constructor() { in constructor() method in BootstrapMethodErrorTest

12