Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMethodsWithNegativeIndices (0.27 sec)

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

            assertEquals(0, response.readDataWireFormat(emptyBuffer, 0, 0));
        }
    
        @Test
        @DisplayName("Methods should handle negative indices")
        void testMethodsWithNegativeIndices() {
            // Arrange
            byte[] buffer = new byte[100];
            int negativeIndex = -1;
    
            // Act & Assert
            // These methods don't validate indices, so they return 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top