Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 79 for getDeclaredMethod (0.1 seconds)

  1. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        class Context {
          @SuppressWarnings("unused") // used by reflection
          Map<String, Integer> returningMap() {
            throw new AssertionError();
          }
        }
        Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType();
        Type keyType = Map.class.getTypeParameters()[0];
        Type valueType = Map.class.getTypeParameters()[1];
    
        // context is parameterized type
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

           * trivially, but it's enough to skip these ones.
           */
          ) {
            continue;
          }
          Class<?> clazz = info.load();
          try {
            Method unused = clazz.getDeclaredMethod("writeReplace");
            continue; // It overrides writeReplace, so it's safe.
          } catch (NoSuchMethodException e) {
            // This is a class whose supertypes we want to examine. We'll do that below.
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 03:07:54 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. 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);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  4. 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);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            }
        }
    
        // Test getValueFromMap private method via reflection
        @Test
        public void test_getValueFromMap() throws Exception {
            Method method = Crawler.class.getDeclaredMethod("getValueFromMap", Map.class, String.class, String.class);
            method.setAccessible(true);
    
            Map<String, String> dataMap = new HashMap<>();
            dataMap.put("key1", "value1");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 30.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

                    } else {
                        paramTypes[i] = params[i].getClass();
                    }
                }
                var m = cls.getDeclaredMethod(name, paramTypes);
                m.setAccessible(true);
                return (int) m.invoke(target, params);
            } catch (Exception e) {
                fail("invoke " + name, e);
                return -1;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        Class<?> abstractFutureStateClass = classLoader.loadClass(AbstractFutureState.class.getName());
        Method helperMethod = abstractFutureStateClass.getDeclaredMethod("atomicHelperTypeForTest");
        helperMethod.setAccessible(true);
        assertThat(helperMethod.invoke(null)).isEqualTo(expectedHelperClassName);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Use reflection to test private method
            Method createFileInfoMethod = Smb2QueryDirectoryResponse.class.getDeclaredMethod("createFileInfo");
            createFileInfoMethod.setAccessible(true);
    
            FileBothDirectoryInfo result = (FileBothDirectoryInfo) createFileInfoMethod.invoke(response);
    
            assertNotNull(result);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

                return null;
            }
        }
    
        private CurlRequest callProtectedRequest(CurlHelper curlHelper, CurlRequest request) {
            try {
                java.lang.reflect.Method method = CurlHelper.class.getDeclaredMethod("request", CurlRequest.class);
                method.setAccessible(true);
                return (CurlRequest) method.invoke(curlHelper, request);
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/util/IpAddressUtilTest.java

        @Test
        public void testCompressIPv6() {
            // Test IPv6 compression (using reflection to access protected method)
            try {
                java.lang.reflect.Method method = IpAddressUtil.class.getDeclaredMethod("compressIPv6", String.class);
                method.setAccessible(true);
    
                // Compressed forms should remain unchanged
                assertEquals("::1", method.invoke(null, "::1"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 08:31:03 GMT 2025
    - 8.9K bytes
    - Click Count (0)
Back to Top