Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 118 for getDeclaredField (0.08 sec)

  1. src/test/java/org/codelibs/fess/query/QueryCommandTest.java

                {
                    // Force initialize the ObjectiveConfig's prop field using reflection
                    try {
                        java.lang.reflect.Field propField = org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("prop");
                        propField.setAccessible(true);
                        propField.set(this, new org.dbflute.helper.jprop.ObjectiveProperties("test"));
                    } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        // Helper: reflectively set private/protected field on an object
        private static void setField(Object target, Class<?> declaring, String name, Object value) {
            try {
                Field f = declaring.getDeclaredField(name);
                f.setAccessible(true);
                f.set(target, value);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/LogStreamTest.java

            resetLogStreamInstance();
        }
    
        private void resetLogStreamInstance() throws Exception {
            // Use reflection to reset the static instance field to null
            Field instanceField = LogStream.class.getDeclaredField("inst");
            instanceField.setAccessible(true);
            instanceField.set(null, null);
        }
    
        @Test
        void testConstructor() {
            // Test constructor creates a LogStream that extends PrintStream
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @see Class#getDeclaredField(String)
         */
        public static Field getDeclaredField(final Class<?> clazz, final String name) throws NoSuchFieldRuntimeException {
            assertArgumentNotNull("clazz", clazz);
            assertArgumentNotEmpty("name", name);
    
            try {
                return clazz.getDeclaredField(name);
            } catch (final NoSuchFieldException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

        public void test_loggerFieldInitialization() throws Exception {
            // Use reflection to access the private logger field
            Field loggerField = FessCurtainFinallyHook.class.getDeclaredField("logger");
            loggerField.setAccessible(true);
    
            Object logger = loggerField.get(null); // static field
    
            // Verify logger is not null
            assertNotNull(logger);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

        Class<?> aggregateFutureStateClass =
            classLoader.loadClass(AggregateFutureState.class.getName());
        Field helperField = aggregateFutureStateClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
        assertEquals(expectedHelperClassName, helperField.get(null).getClass().getSimpleName());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbOperationException.java

        }
    
        private void setAttemptNumber(int attemptNumber) {
            // Package-private setter for attempt number
            try {
                java.lang.reflect.Field field = SmbOperationException.class.getDeclaredField("attemptNumber");
                field.setAccessible(true);
                field.set(this, attemptNumber);
            } catch (Exception e) {
                // Ignore
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        // Helper methods
    
        private void setInfoField(Trans2QueryFSInformationResponse response, FileSystemInformation info) {
            try {
                Field infoField = Trans2QueryFSInformationResponse.class.getDeclaredField("info");
                infoField.setAccessible(true);
                infoField.set(response, info);
            } catch (Exception e) {
                fail("Failed to set info field: " + e.getMessage());
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

                try {
                    final Class<Object> handlerClazz = ClassUtil.forName(basePackage + "." + protocol + ".Handler");
                    final Field protocolTypeField = ClassUtil.getDeclaredField(handlerClazz, "PROTOCOL_TYPE");
                    if (protocolTypeField.get(null) instanceof final String protocolType) {
                        if ("web".equalsIgnoreCase(protocolType)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

                    // Use reflection to initialize the internal properties structure
                    java.lang.reflect.Field propField =
                            org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("_javaPropertiesResult");
                    propField.setAccessible(true);
    
                    // Create a mock JavaPropertiesResult
                    java.util.Properties props = new java.util.Properties();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top