Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 167 for setAccessible (0.09 seconds)

  1. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            dataIndexHelper.setCrawlingExecutionInterval(interval);
    
            try {
                Field field = DataIndexHelper.class.getDeclaredField("crawlingExecutionInterval");
                field.setAccessible(true);
                long actualInterval = (Long) field.get(dataIndexHelper);
                assertEquals(interval, actualInterval);
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

        }
    
        @Test
        @DisplayName("Test DESCR array contents")
        void testDescrArray() throws Exception {
            Field descrField = NetServerEnum2.class.getDeclaredField("DESCR");
            descrField.setAccessible(true);
            String[] descr = (String[]) descrField.get(null);
    
            assertNotNull(descr);
            assertEquals(2, descr.length);
            assertEquals("WrLehDO\u0000B16BBDz\u0000", descr[0]);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final CoordinatorHelper helper = new CoordinatorHelper();
            try {
                final Field field = CoordinatorHelper.class.getDeclaredField("instanceId");
                field.setAccessible(true);
                field.set(helper, testInstanceId);
            } catch (final Exception e) {
                throw new RuntimeException(e);
            }
            return helper;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

    @J2ktIncompatible
    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);
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

    @J2ktIncompatible
    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);
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

        private int getSearchAttributes(SmbComDelete smbComDelete) {
            try {
                Field field = smbComDelete.getClass().getDeclaredField("searchAttributes");
                field.setAccessible(true);
                return field.getInt(smbComDelete);
            } catch (Exception e) {
                throw new RuntimeException("Failed to get searchAttributes field", e);
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java

            } catch (NoSuchMethodException e) {
                throw new RuntimeException(e);
            }
        }
    
        private static Method makeAccessible(Method method) {
            method.setAccessible(true);
            return method;
        }
    
        private static <T> T invoke(Method method, Object instance, Object... args) {
            try {
                Object result = method.invoke(instance, args);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            Method method = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart");
            method.setAccessible(true);
    
            Field field = ServerMessageBlock2.class.getDeclaredField("headerStart");
            field.setAccessible(true);
            field.setInt(response, headerStart);
        }
    
        /**
         * Helper method to set status using reflection
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/https/HandlerTest.java

                // When
                Method method = Handler.class.getDeclaredMethod("getDefaultPort");
    
                // Then
                assertTrue(Modifier.isProtected(method.getModifiers()));
                method.setAccessible(true); // Required to invoke protected method
                assertEquals(443, method.invoke(testHandler));
            }
    
            @Test
            @DisplayName("Should maintain inheritance hierarchy")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

                // Setup minimal mock components
                setupMockComponents();
    
                Method processMethod = SuggestCreator.class.getDeclaredMethod("process", SuggestCreator.Options.class);
                processMethod.setAccessible(true);
    
                try {
                    Integer result = (Integer) processMethod.invoke(null, options);
                    // Any result is acceptable as long as no unexpected exception
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top