Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadDataWireFormat_EmptyBuffer (0.33 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            assertEquals(1, response.getSid());
            assertEquals(5, response.getNumEntries());
            assertTrue(response.isEndOfSearch());
        }
    
        @Test
        void testReadDataWireFormat_emptyBuffer() throws Exception {
            // Test reading data from an empty buffer
            byte[] buffer = new byte[10];
    
            // Set data count to test return value
            response.setDataCount(5);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            int bytesRead = response.readDataWireFormat(buffer, 0, 20);
    
            assertEquals(0, bytesRead);
            assertNull(response.getInfo());
        }
    
        @Test
        void testReadDataWireFormat_EmptyBuffer() throws Exception {
            // Test with empty dataCount but decode still processes buffer
            // Note: SmbInfoAllocation.decode() doesn't check len parameter, always reads 20 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top