Searched refs:invokable (Results 1 – 6 of 6) sorted by relevance
299 Invokable<String, String> invokable = Invokable.from(String.class.getConstructor()); in testGetOwnerType_constructor() local300 assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); in testGetOwnerType_constructor()304 Invokable<?, ?> invokable = Invokable.from(String.class.getMethod("length")); in testGetOwnerType_method() local305 assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); in testGetOwnerType_method()344 Invokable<?, ?> invokable = Invokable.from(constructor); in testInnerClassWithOneParameterConstructor() local345 assertEquals(1, invokable.getParameters().size()); in testInnerClassWithOneParameterConstructor()346 assertEquals(TypeToken.of(String.class), invokable.getParameters().get(0).getType()); in testInnerClassWithOneParameterConstructor()357 Invokable<?, ?> invokable = Invokable.from(constructor); in testInnerClassWithAnnotatedConstructorParameter() local358 assertEquals(1, invokable.getParameters().size()); in testInnerClassWithAnnotatedConstructorParameter()359 assertEquals(TypeToken.of(String.class), invokable.getParameters().get(0).getType()); in testInnerClassWithAnnotatedConstructorParameter()[all …]
1243 Invokable<T, String> invokable = new TypeToken<T>(getClass()) {} in testMethod_returnType_resolvedAgainstTypeBound() local1246 assertEquals(TypeToken.of(String.class), invokable.getReturnType()); in testMethod_returnType_resolvedAgainstTypeBound()1252 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(setMethod); in testMethod_parameterTypes() local1253 ImmutableList<Parameter> params = invokable.getParameters(); in testMethod_parameterTypes()1279 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod); in testMethod_exceptionTypes() local1280 assertThat(invokable.getExceptionTypes()).has().item(TypeToken.of(AssertionError.class)); in testMethod_exceptionTypes()1330 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); in testConstructor_parameterTypes() local1331 ImmutableList<Parameter> params = invokable.getParameters(); in testConstructor_parameterTypes()1345 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); in testConstructor_exceptionTypes() local1346 assertThat(invokable.getExceptionTypes()).has().item(TypeToken.of(AssertionError.class)); in testConstructor_exceptionTypes()
394 Invokable<?, ?> invokable = Invokable.from(method); in forAllPublicStaticMethods() local395 invokable.setAccessible(true); in forAllPublicStaticMethods()396 if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) { in forAllPublicStaticMethods()397 builder.add(invokable); in forAllPublicStaticMethods()687 Invokable<?, ?> invokable = type.method(method); in getFactories() local688 if (!invokable.isPrivate() in getFactories()689 && !invokable.isSynthetic() in getFactories()690 && invokable.isStatic() in getFactories()691 && type.isAssignableFrom(invokable.getReturnType())) { in getFactories()693 Invokable<?, ? extends T> factory = (Invokable<?, ? extends T>) invokable; in getFactories()[all …]
210 testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass()); in testMethodParameter()331 private void testParameter(Object instance, Invokable<?, ?> invokable, in testParameter() argument333 if (isPrimitiveOrNullable(invokable.getParameters().get(paramIndex))) { in testParameter()336 Object[] params = buildParamList(invokable, paramIndex); in testParameter()339 Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable; in testParameter()342 + " from " + invokable + Arrays.toString(params) + " for " + testedClass); in testParameter()349 "wrong exception thrown from " + invokable + ": " + cause); in testParameter()357 private Object[] buildParamList(Invokable<?, ?> invokable, int indexOfParamToSetToNull) { in buildParamList() argument358 ImmutableList<Parameter> params = invokable.getParameters(); in buildParamList()448 private static Invokable<?, ?> invokable(@Nullable Object instance, Method method) {
72 Invokable<?, ?> invokable = interfaceType.method(method); in handleInvocation() local73 ImmutableList<Parameter> params = invokable.getParameters(); in handleInvocation()
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...