Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadDataWireFormatWithDifferentOffsets (0.21 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            // Verify second data overwrote first
            for (int i = 0; i < secondData.length; i++) {
                assertEquals(secondData[i], outputBuffer[i]);
            }
        }
    
        @Test
        void testReadDataWireFormatWithDifferentOffsets() throws SMBProtocolDecodingException {
            byte[] sourceData = { 11, 22, 33, 44, 55 };
            byte[] buffer = new byte[50];
    
            // Test with offset at beginning
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            });
        }
    
        @DisplayName("Test readDataWireFormat with different buffer offsets")
        @ParameterizedTest
        @ValueSource(ints = { 0, 10, 50, 100 })
        void testReadDataWireFormatWithDifferentOffsets(int offset) throws Exception {
            // Create a buffer large enough for offset + data
            byte[] buffer = createValidSecurityDescriptorBuffer(offset + 100);
    
            // Set error code to 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top