Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 963 for handle (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @Test
            @DisplayName("Should handle empty buffer encoding")
            void testEmptyBufferEncoding() {
                byte[] buffer = new byte[256];
                testMessage.setBytesWritten(0);
                int len = testMessage.encode(buffer, 0);
                assertTrue(len >= Smb2Constants.SMB2_HEADER_LENGTH);
            }
    
            @Test
            @DisplayName("Should handle large MID values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/CryptoTest.java

        }
    
        @ParameterizedTest
        @ValueSource(strings = { "", "a", "short", "medium length text", "very long text that exceeds typical block sizes" })
        @DisplayName("Should handle various input sizes for hashing")
        void testHashVariousInputSizes(String input) {
            // Given
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            System.arraycopy(buffer, bodyOffset + 8, actualPath, 0, pathBytes.length);
            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
        @DisplayName("Should handle chain operation correctly")
        void testChain() {
            // Given
            ServerMessageBlock2 nextMessage = mock(ServerMessageBlock2.class);
    
            // When
            boolean result = request.chain(nextMessage);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

                        // Handle operation failure appropriately
                        notifyOperationFailure(op, e);
                    }
                }
            }
        }
    
        private void notifyOperationFailure(CommonServerMessageBlock op, Exception error) {
            // This would need to be implemented based on how the SMB operations
            // handle asynchronous failures in the actual transport implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtStatus.java

        /** The specified information class is invalid */
        int NT_STATUS_INVALID_INFO_CLASS = 0xC0000003;
        /** Invalid access to memory location */
        int NT_STATUS_ACCESS_VIOLATION = 0xC0000005;
        /** The handle is invalid */
        int NT_STATUS_INVALID_HANDLE = 0xC0000008;
        /** The parameter is incorrect */
        int NT_STATUS_INVALID_PARAMETER = 0xC000000d;
        /** The system cannot find the device specified */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

                        // Handle nested properties
                        if (key.contains(".")) {
                            // Simple nested property handling for testing
                            result = result.replace("${" + key + "}", String.valueOf(value));
                        } else if (value instanceof TestUser) {
                            // Handle TestUser object
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

    import jcifs.internal.smb2.create.CreateContextRequest;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Durable Handle Reconnect Create Context (DHnC)
     *
     * MS-SMB2 Section 2.2.13.2.5
     */
    public class DurableHandleReconnect implements CreateContextRequest {
    
        /**
         * Context name for durable handle reconnect
         */
        public static final String CONTEXT_NAME = "DHnC";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ACETest.java

            @Test
            @DisplayName("Should handle empty or null ApplyToText")
            void shouldHandleEmptyApplyToText() {
                ACE ace1 = mock(ACE.class);
                ACE ace2 = mock(ACE.class);
                when(ace1.getApplyToText()).thenReturn("");
                when(ace2.getApplyToText()).thenReturn(null);
    
                assertEquals("", ace1.getApplyToText(), "Should handle empty apply text");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/StringsTest.java

        private static final String ASCII_STRING = "ASCII Test";
    
        @Nested
        @DisplayName("Basic Encoding Methods")
        class BasicEncodingTests {
    
            @Test
            @DisplayName("getBytes should handle null string")
            void testGetBytesWithNull() {
                // When
                byte[] result = Strings.getBytes(null, StandardCharsets.UTF_8);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/rpc.java

                for (int _i = 0; _i < _nodes; _i++) {
                    this.node[_i] = (byte) _src.dec_ndr_small();
                }
            }
        }
    
        /**
         * Policy handle structure for DCE/RPC operations.
         * Represents an opaque handle used to reference server-side resources.
         */
        public static class policy_handle extends NdrObject {
    
            /**
             * Default constructor for policy_handle.
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top