Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for NoSuchFieldException (0.11 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

                    Field f = clazz.getDeclaredField(fieldName);
                    f.setAccessible(true);
                    return f.get(target);
                } catch (NoSuchFieldException e) {
                    clazz = clazz.getSuperclass();
                }
            }
            throw new NoSuchFieldException(fieldName);
        }
    
        private static void setPrivateField(Object target, String fieldName, Object value) throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/SingletonContextTest.java

            try {
                Field instance = SingletonContext.class.getDeclaredField("INSTANCE");
                instance.setAccessible(true);
                instance.set(null, null);
            } catch (NoSuchFieldException | IllegalAccessException e) {
                log.error("Failed to reset SingletonContext instance", e);
                fail("Failed to reset SingletonContext instance: " + e.getMessage());
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java

            // Then
            assertNotNull(msrpcSamrConnect2, "MsrpcSamrConnect2 should be created successfully");
        }
    
        @Test
        @DisplayName("Should set ptype field to 0")
        void shouldSetPtypeToZero() throws NoSuchFieldException, IllegalAccessException {
            // When
            MsrpcSamrConnect2 msrpcSamrConnect2 = new MsrpcSamrConnect2(testServer, testAccess, mockPolicyHandle);
    
            // Then - Use reflection to verify protected field
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java

         * Verifies that the constructor correctly initializes the object's fields using reflection for protected members.
         */
        @Test
        void testConstructor() throws NoSuchFieldException, IllegalAccessException {
            // Create an instance of the class to be tested
            MsrpcGetMembersInAlias request = new MsrpcGetMembersInAlias(aliasHandle, sids);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/NoSuchFieldRuntimeException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * Exception that wraps {@link NoSuchFieldException}.
     *
     * @author higa
     */
    public class NoSuchFieldRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = 6609175673610180338L;
    
        /**
         * The target class.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/CurlExceptionTest.java

            boolean hasSerialVersionUID = false;
            try {
                CurlException.class.getDeclaredField("serialVersionUID");
                hasSerialVersionUID = true;
            } catch (NoSuchFieldException e) {
                // Field doesn't exist
            }
            assertTrue("CurlException should have serialVersionUID field", hasSerialVersionUID);
        }
    
        @Test
        public void testExceptionChaining() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java

                flagsField.setAccessible(true);
                assertEquals(0x01 | 0x02, flagsField.get(msrpcSamrOpenAlias),
                        "flags should be initialized to DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
            } catch (NoSuchFieldException | IllegalAccessException e) {
                throw new RuntimeException("Failed to access protected fields via reflection", e);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Enums.java

       */
      public static Field getField(Enum<?> enumValue) {
        Class<?>
            clazz = enumValue.getDeclaringClass();
        try {
          return clazz.getDeclaredField(enumValue.name());
        } catch (NoSuchFieldException impossible) {
          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 13:41:58 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/https/HandlerTest.java

                assertEquals(443, Handler.DEFAULT_HTTPS_PORT);
            }
    
            @Test
            @DisplayName("DEFAULT_HTTPS_PORT should be public static final")
            void testDefaultHttpsPortModifiers() throws NoSuchFieldException {
                // When
                var field = Handler.class.getField("DEFAULT_HTTPS_PORT");
    
                // Then
                assertTrue(Modifier.isPublic(field.getModifiers()));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

                Field field = DBFluteSystem.class.getDeclaredField("finalTimeZoneProvider");
                field.setAccessible(true);
                return (DfFinalTimeZoneProvider) field.get(null);
            } catch (NoSuchFieldException e) {
                // Field might not exist in this version, return null
                return null;
            } catch (IllegalAccessException e) {
                // Cannot access field due to security restrictions
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top