Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 1,116 for handles (1.15 sec)

  1. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        }
    
        @Test
        @DisplayName("readLength should handle maximum length")
        void testReadLengthMaximum() {
            byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF };
            int length = SessionServicePacket.readLength(src, 0);
    
            assertEquals(0x01FFFF, length);
        }
    
        @Test
        @DisplayName("readLength should handle zero length")
        void testReadLengthZero() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbSessionTest.java

            @Test
            @DisplayName("Should handle self unwrap")
            void shouldHandleSelfUnwrap() {
                SmbSession mockSession = mock(SmbSession.class);
                when(mockSession.unwrap(SmbSession.class)).thenReturn(mockSession);
    
                SmbSession result = mockSession.unwrap(SmbSession.class);
                assertSame(mockSession, result, "unwrap should handle self unwrapping");
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

            void testConstructorAndOpnum() {
                // When: Creating close handle message
                samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle);
    
                // Then: Should have correct opnum and handle
                assertEquals(0x01, message.getOpnum());
                assertEquals(mockPolicyHandle, message.handle);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

        }
        check(rule.indexOf(WILDCARD_CHAR, 1) == -1) {
          """Wildcard Assertion Failure: '$rule'
    A wildcard rule was added with multiple wildcards! We'll need to change ${PublicSuffixDatabase::class.java.name} to handle this."""
        }
        check(rule.length != 1) {
          """Wildcard Assertion Failure: '$rule'
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Aug 06 05:33:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbPipeResource.java

        int PIPE_TYPE_UNSHARED = 0x800;
    
        /**
         * Gets the type of this pipe.
         *
         * @return the type of the pipe
         */
        int getPipeType();
    
        /**
         * Create a pipe handle
         *
         * @return pipe handle, needs to be closed when finished
         */
        SmbPipeHandle openPipe();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertArrayEquals(new int[] { 1, 2 }, context.getHashAlgos());
                assertArrayEquals(new byte[] { 0x0A, 0x0B, 0x0C, 0x0D }, context.getSalt());
            }
    
            @Test
            @DisplayName("Should handle empty arrays in decode")
            void testDecodeEmptyArrays() throws SMBProtocolDecodingException {
                // Arrange
                context = new PreauthIntegrityNegotiateContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRegistration.java

            this.flags = flags;
        }
    
        /**
         * Gets the context handle.
         *
         * @return the context handle
         */
        public byte[] getContextHandle() {
            return contextHandle;
        }
    
        /**
         * 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: Mon Aug 25 14:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                // Lease completely broken - invalidate cache
                entry.invalidate();
            }
    
            if ((newState & Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING) == 0) {
                // Lost handle cache - may need to close directory handle
                changeNotifier.stopWatching(directoryPath);
            }
    
            // Forward to base lease manager
            baseLeaseManager.handleLeaseBreak(leaseKey, newState);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            assertNotNull(type3.getNTResponse());
            assertTrue(type3.getLMResponse().length > 0);
            assertTrue(type3.getNTResponse().length > 0);
        }
    
        @Test
        @DisplayName("Should handle Unicode strings")
        void testUnicodeStrings() throws Exception {
            // Given
            Type2Message type2 = createMockType2Message();
            String unicodeDomain = "TËSTDØMÄIN";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top