Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for getDeclaredMethod (0.2 sec)

  1. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        assertFalse(
            Visibility.PUBLIC.isVisible(VisibilityMethods.class.getDeclaredMethod("privateMethod")));
        assertFalse(
            Visibility.PUBLIC.isVisible(
                VisibilityMethods.class.getDeclaredMethod("packagePrivateMethod")));
        assertFalse(
            Visibility.PUBLIC.isVisible(VisibilityMethods.class.getDeclaredMethod("protectedMethod")));
        assertTrue(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeParameterTest.java

      public <T> void testCaptureTypeParameter() throws Exception {
        TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable;
        TypeVariable<?> expected =
            TypeParameterTest.class.getDeclaredMethod("testCaptureTypeParameter")
                .getTypeParameters()[0];
        assertEquals(expected, variable);
      }
    
      public void testConcreteTypeRejected() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      }
    
      private Throwable tryInternalFastPathGetFailure(Future<?> future) throws Exception {
        Method tryInternalFastPathGetFailureMethod =
            abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure");
        tryInternalFastPathGetFailureMethod.setAccessible(true);
        return (Throwable) tryInternalFastPathGetFailureMethod.invoke(future);
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

     *
     * @author Ben Yu
     */
    final class ForwardingObjectTester {
    
      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        static WildcardType getWildcardType(String methodName) throws Exception {
          ParameterizedType parameterType =
              (ParameterizedType)
                  WithWildcardType.class.getDeclaredMethod(methodName, List.class)
                      .getGenericParameterTypes()[0];
          return (WildcardType) parameterType.getActualTypeArguments()[0];
        }
      }
    
      public void testNewWildcardType() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      }
    
      private Throwable tryInternalFastPathGetFailure(Future<?> future) throws Exception {
        Method tryInternalFastPathGetFailureMethod =
            abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure");
        tryInternalFastPathGetFailureMethod.setAccessible(true);
        return (Throwable) tryInternalFastPathGetFailureMethod.invoke(future);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

            .addEqualityGroup(Subscriber.create(bus, "foo", concat))
            .testEquals();
      }
    
      private Method getTestSubscriberMethod(String name) {
        try {
          return getClass().getDeclaredMethod(name, Object.class);
        } catch (NoSuchMethodException e) {
          throw new AssertionError();
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/InvokableTest.java

          return invokable;
        }
    
        static Invokable<?, Object> method(String name, Class<?>... parameterTypes) throws Exception {
          Invokable<?, Object> invokable =
              Invokable.from(A.class.getDeclaredMethod(name, parameterTypes));
          assertEquals(name, invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    
        native void nativeMethod();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

     *
     * @author Ben Yu
     */
    final class ForwardingObjectTester {
    
      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypesTest.java

        static WildcardType getWildcardType(String methodName) throws Exception {
          ParameterizedType parameterType =
              (ParameterizedType)
                  WithWildcardType.class.getDeclaredMethod(methodName, List.class)
                      .getGenericParameterTypes()[0];
          return (WildcardType) parameterType.getActualTypeArguments()[0];
        }
      }
    
      public void testNewWildcardType() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top