Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 79 for getDeclaredMethod (0.12 seconds)

  1. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

        }
    
        private Method getReadStringMethod() throws Exception {
            Class<?> clazz = response.getClass();
            while (clazz != null) {
                try {
                    Method method = clazz.getDeclaredMethod("readString", byte[].class, int.class, int.class, boolean.class);
                    method.setAccessible(true);
                    return method;
                } catch (NoSuchMethodException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java

        }
    
        @Test
        public void test_toLowerCase_privateMethod() throws Exception {
            // Test private method using reflection
            Method method = KeyMatchHelper.class.getDeclaredMethod("toLowerCase", String.class);
            method.setAccessible(true);
    
            String result = (String) method.invoke(keyMatchHelper, "JAVA");
            assertEquals("java", result);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  3. 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
    - 7.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        }
    
        private Method getReadStringMethod() throws Exception {
            Class<?> clazz = response.getClass();
            while (clazz != null) {
                try {
                    Method method = clazz.getDeclaredMethod("readString", byte[].class, int.class, int.class, boolean.class);
                    method.setAccessible(true);
                    return method;
                } catch (NoSuchMethodException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        @Test
        void testCreateInfo_AllInformationLevels() throws Exception {
            // Test createInfo private method with all supported levels
            Method createInfoMethod = Trans2QueryFSInformationResponse.class.getDeclaredMethod("createInfo");
            createInfoMethod.setAccessible(true);
    
            // Test SMB_INFO_ALLOCATION
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

         */
        @Test
        public void testConstantTimeMethodExists() throws Exception {
            // Use reflection to verify the constant-time method exists
            Method constantTimeMethod = NtlmPasswordAuthenticator.class.getDeclaredMethod("constantTimeEquals", char[].class, char[].class);
            assertNotNull(constantTimeMethod, "constantTimeEquals method should exist");
            constantTimeMethod.setAccessible(true);
    
            // Test the method directly
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            return null;
        }
    
        private Method findMethod(Class<?> clazz, String methodName, Class<?>... paramTypes) {
            while (clazz != null) {
                try {
                    return clazz.getDeclaredMethod(methodName, paramTypes);
                } catch (NoSuchMethodException e) {
                    clazz = clazz.getSuperclass();
                }
            }
            return null;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

        }
    
        // Test annotation on method parameter
        @Test
        public void test_annotationOnMethod() throws Exception {
            Method method = TestService.class.getDeclaredMethod("scheduledTask", String.class);
            Annotation[][] paramAnnotations = method.getParameterAnnotations();
    
            assertEquals(1, paramAnnotations.length);
            boolean hasCronExpression = false;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        }
    
        // Helper method to invoke the private distinct method
        private String[] invokeDistinct(String[] values) {
            try {
                java.lang.reflect.Method method = LdapUser.class.getDeclaredMethod("distinct", String[].class);
                method.setAccessible(true);
                return (String[]) method.invoke(null, (Object) values);
            } catch (Exception e) {
                throw new RuntimeException(e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

            try {
                final Class<?> cls = targetOrClass instanceof Class<?> ? (Class<?>) targetOrClass : targetOrClass.getClass();
                Method m = cls.getDeclaredMethod(methodName, paramTypes);
                m.setAccessible(true);
                return m.invoke(targetOrClass instanceof Class<?> ? null : targetOrClass, args);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
Back to Top