Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getDeclaredMethod (0.09 sec)

  1. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/ModifierUtilTest.java

         */
        public void testIsPublic() throws Exception {
            final Field f = Hoge.class.getDeclaredField("s");
            assertTrue(ModifierUtil.isPublicStaticFinalField(f));
            final Method m = Hoge.class.getDeclaredMethod("hoge", new Class[] {});
            assertTrue(ModifierUtil.isPublic(m));
        }
    
        /**
         * @throws Exception
         */
        public void testIsInstanceField() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. 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 {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. 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 {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

            assertThat(bar, is(notNullValue()));
            assertThat(bar.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(bar.getMethod(), is(MyBean.class.getDeclaredMethod("bar", String.class)));
            assertThat(bar.getParameterTypes().length, is(1));
            assertThat(bar.getMethodName(), is("bar"));
            assertThat(bar.isPublic(), is(true));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

     * on classpath.
     */
    open class AndroidSocketAdapter(private val sslSocketClass: Class<in SSLSocket>) : SocketAdapter {
      private val setUseSessionTickets: Method =
        sslSocketClass.getDeclaredMethod("setUseSessionTickets", Boolean::class.javaPrimitiveType)
      private val setHostname = sslSocketClass.getMethod("setHostname", String::class.java)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K 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();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. android/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();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. 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();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. 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);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 05 19:41:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top