Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readZeroLengthArrayReturnsZero (0.1 sec)

  1. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            assertThrows(IOException.class, () -> sis.read());
        }
    
        @Test
        @DisplayName("Reading with zero-length array returns 0")
        void readZeroLengthArrayReturnsZero() throws IOException {
            // Create stream with a message containing data
            byte[] data = new byte[] { 1, 2 };
            InputStream in = new ByteArrayInputStream(concat(messageHeader(2), data));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top