Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 653 for HANDLE (0.04 sec)

  1. src/test/java/jcifs/util/EncdecTest.java

            assertEquals(0xDE, buffer[1] & 0xFF);
            assertEquals(0xBC, buffer[2] & 0xFF);
            assertEquals(0x9A, buffer[3] & 0xFF);
        }
    
        @Test
        @DisplayName("Should handle big endian encoding/decoding")
        void testBigEndianOperations() {
            // Given
            int value = 0x12345678;
            byte[] buffer = new byte[4];
    
            // When - encode big endian
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            assertNull(transPeekNamedPipe.name);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE, 0xFFFF })
        @DisplayName("Constructor should handle various FID values")
        void testConstructorWithVariousFids(int fid) {
            // Act
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, fid);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

        }
    
        /**
         * Gets the context handle returned by the server.
         *
         * @return the context handle
         */
        public byte[] getContextHandle() {
            return contextHandle != null ? contextHandle.clone() : null;
        }
    
        /**
         * Sets the context handle.
         *
         * @param contextHandle the context handle
         */
        public void setContextHandle(byte[] contextHandle) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResourceException.java

            default:
                return "Check resource availability and retry";
            }
        }
    
        /**
         * Static factory for file handle exhaustion
         */
        public static SmbResourceException fileHandleExhausted(int errorCode) {
            return new SmbResourceException("File handle limit exceeded", errorCode, ResourceType.FILE_HANDLE);
        }
    
        /**
         * Static factory for connection pool exhaustion
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                assertEquals(expectedFlags, flags);
            }
    
            @Test
            @DisplayName("getDefaultFlags should handle Type1Message with request target")
            void testGetDefaultFlags_CIFSContext_Type1Message_Unicode_RequestTarget_DomainPresent() {
                // Given
                CIFSContext mockContext = createMockContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                }
            }
            return false;
        }
    
        /**
         * Add a durable handle V1 context to this request
         */
        public void addDurableHandleV1Context() {
            addCreateContext(new jcifs.internal.smb2.persistent.DurableHandleRequest());
        }
    
        /**
         * Add a durable handle V2 context to this request
         * @param timeoutMs the timeout in milliseconds (0 for persistent handles)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                assertThrows(NullPointerException.class, () -> {
                    buffer.size();
                });
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various referral levels")
            @ValueSource(ints = { 0, 1, 2, 3, 4, 5, 255, 256, 32767, 65535 })
            void testConstructorWithVariousReferralLevels(int maxReferralLevel) {
                String path = "\\\\test";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                assertEquals(SMB_COM_NT_CANCEL, commandField.getByte(cancel));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 100, 255, 65535 })
            @DisplayName("Should handle different MID values")
            void testConstructorWithVariousMids(int mid) throws Exception {
                // Given
                Configuration config = mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                    log.warn("File handle was not properly closed, performing emergency cleanup: " + this);
                    if (this.creationBacktrace != null) {
                        log.warn(Arrays.toString(this.creationBacktrace));
                    }
                    emergencyCloseHandle();
                }
            } catch (Exception e) {
                log.error("Error during file handle finalization", e);
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
Back to top