Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 143 for setAccessible (0.33 sec)

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

            // ensure information level is stored using reflection
            Field informationLevelField = Trans2QueryFSInformation.class.getDeclaredField("informationLevel");
            informationLevelField.setAccessible(true);
            assertEquals(level, informationLevelField.getInt(cmd), "informationLevel should be persisted");
        }
    
        @Test
        @DisplayName("writeSetupWireFormat writes the subCommand and a trailing 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // When/Then
                try {
                    java.lang.reflect.Method method = Type2Message.class.getDeclaredMethod("makeTargetInfo", CIFSContext.class, String.class);
                    method.setAccessible(true);
                    byte[] targetInfo = (byte[]) method.invoke(null, mockContext, TEST_DOMAIN);
    
                    assertNotNull(targetInfo);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            field.setAccessible(true);
            field.set(obj, value);
        }
    
        /**
         * Helper method to get private field value using reflection
         */
        private Object getPrivateField(Object obj, String fieldName) throws Exception {
            Field field = obj.getClass().getDeclaredField(fieldName);
            field.setAccessible(true);
            return field.get(obj);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

        void serialVersionUID_hasExpectedValue() throws Exception {
            // Arrange
            Field f = SMBSignatureValidationException.class.getDeclaredField("serialVersionUID");
            f.setAccessible(true);
    
            // Act
            long value = (long) f.get(null);
    
            // Assert
            assertEquals(2283323396289696982L, value, "serialVersionUID should be stable");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            Field field = target.getClass().getDeclaredField(fieldName);
            field.setAccessible(true);
            field.set(target, value);
        }
    
        private void setResponseAsReceived(Smb2NegotiateResponse resp) throws Exception {
            Method setReceivedMethod = ServerMessageBlock2Response.class.getDeclaredMethod("received");
            setReceivedMethod.setAccessible(true);
            setReceivedMethod.invoke(resp);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/Types.java

            if (method.getDeclaringClass().equals(TypeVariableImpl.class)) {
              try {
                method.setAccessible(true);
              } catch (AccessControlException e) {
                // OK: the method is accessible to us anyway. The setAccessible call is only for
                // unusual execution environments where that might not be true.
              }
              builder.put(method.getName(), method);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

        // Helper to set private field 'tree'
        private static void setTree(SmbTreeConnection c, SmbTreeImpl tree) {
            try {
                Field f = SmbTreeConnection.class.getDeclaredField("tree");
                f.setAccessible(true);
                f.set(c, tree);
            } catch (Exception e) {
                throw new AssertionError(e);
            }
        }
    
        // Helper to set private flag 'treeAcquired'
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

            try {
                java.lang.reflect.Method method = obj.getClass().getDeclaredMethod(methodName, String.class);
                method.setAccessible(true);
                return (ClassificationMeta) method.invoke(obj, param);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/eventbus/Subscriber.java

      private final Executor executor;
    
      private Subscriber(EventBus bus, Object target, Method method) {
        this.bus = bus;
        this.target = checkNotNull(target);
        this.method = method;
        method.setAccessible(true);
    
        this.executor = bus.executor();
      }
    
      /** Dispatches {@code event} to this subscriber using the proper executor. */
      final void dispatchEvent(Object event) {
        executor.execute(
            () -> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportImplTest.java

        private static void setField(Object target, String name, Object value) {
            try {
                Field f = findField(target.getClass(), 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
    - 17.6K bytes
    - Viewed (0)
Back to top