Home
last modified time | relevance | path

Searched refs:invokable (Results 1 – 6 of 6) sorted by relevance

/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java299 Invokable<String, String> invokable = Invokable.from(String.class.getConstructor()); in testGetOwnerType_constructor() local
300 assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); in testGetOwnerType_constructor()
304 Invokable<?, ?> invokable = Invokable.from(String.class.getMethod("length")); in testGetOwnerType_method() local
305 assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); in testGetOwnerType_method()
344 Invokable<?, ?> invokable = Invokable.from(constructor); in testInnerClassWithOneParameterConstructor() local
345 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() local
358 assertEquals(1, invokable.getParameters().size()); in testInnerClassWithAnnotatedConstructorParameter()
359 assertEquals(TypeToken.of(String.class), invokable.getParameters().get(0).getType()); in testInnerClassWithAnnotatedConstructorParameter()
[all …]
DTypeTokenTest.java1243 Invokable<T, String> invokable = new TypeToken<T>(getClass()) {} in testMethod_returnType_resolvedAgainstTypeBound() local
1246 assertEquals(TypeToken.of(String.class), invokable.getReturnType()); in testMethod_returnType_resolvedAgainstTypeBound()
1252 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(setMethod); in testMethod_parameterTypes() local
1253 ImmutableList<Parameter> params = invokable.getParameters(); in testMethod_parameterTypes()
1279 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod); in testMethod_exceptionTypes() local
1280 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() local
1331 ImmutableList<Parameter> params = invokable.getParameters(); in testConstructor_parameterTypes()
1345 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); in testConstructor_exceptionTypes() local
1346 assertThat(invokable.getExceptionTypes()).has().item(TypeToken.of(AssertionError.class)); in testConstructor_exceptionTypes()
/external/guava/guava-testlib/src/com/google/common/testing/
DClassSanityTester.java394 Invokable<?, ?> invokable = Invokable.from(method); in forAllPublicStaticMethods() local
395 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() local
688 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 …]
DNullPointerTester.java210 testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass()); in testMethodParameter()
331 private void testParameter(Object instance, Invokable<?, ?> invokable, in testParameter() argument
333 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() argument
358 ImmutableList<Parameter> params = invokable.getParameters(); in buildParamList()
448 private static Invokable<?, ?> invokable(@Nullable Object instance, Method method) {
DDummyProxy.java72 Invokable<?, ?> invokable = interfaceType.method(method); in handleInvocation() local
73 ImmutableList<Parameter> params = invokable.getParameters(); in handleInvocation()
/external/guice/lib/build/
Dguava-testlib-16.0.1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...