Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReadPacketTypeSpecialStream (0.35 sec)

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

            assertEquals("unexpected EOF reading netbios session header", exception.getMessage());
        }
    
        @Test
        @DisplayName("readPacketType with special stream returning -1 should return -1")
        void testReadPacketTypeSpecialStream() throws IOException {
            // Create a mock stream that returns exactly -1 on first read (special case)
            when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(-1); // Immediate EOF
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top