Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for test_decode (0.07 sec)

  1. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            long decodedValue = SMBUtil.readInt8(buffer, offset);
            assertEquals(endOfFile, decodedValue);
        }
    
        @Test
        @DisplayName("Test decode method with valid buffer")
        void testDecode() throws SMBProtocolDecodingException {
            // Prepare buffer with known value
            long expectedValue = 0x0123456789ABCDEFL;
            byte[] buffer = new byte[16];
            SMBUtil.writeInt8(expectedValue, buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            byte[] buffer = new byte[1024];
            int length = response.encode(buffer, 0);
            assertTrue(length >= 0);
        }
    
        @Test
        @DisplayName("Test decode operation")
        void testDecode() {
            byte[] buffer = new byte[1024];
            // Fill with basic SMB header structure
            System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4);
            buffer[4] = 1; // wordCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            assertEquals(expectedFlags, SMBUtil.readInt4(buffer, 68));
    
            // Verify notification filter
            assertEquals(0x1F, SMBUtil.readInt4(buffer, 72));
        }
    
        @Test
        public void testDecode() {
            // Create a context and encode it
            Smb2LeaseKey originalKey = new Smb2LeaseKey();
            int originalLeaseState = DirectoryLeaseState.DIRECTORY_FULL;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertEquals(null, nullNameResponse.getName());
            }
    
            @Test
            @DisplayName("Should decode data correctly")
            void testDecode() throws SMBProtocolDecodingException {
                int length = 50;
                int result = testResponse.decode(testBuffer, 10, length);
    
                assertEquals(length, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
Back to top