Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 52 of 52 for ArrayIndexOutOfBoundsException (0.43 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            headerStartField.setAccessible(true);
            headerStartField.set(response, 0);
    
            // When & Then - should throw when trying to read beyond buffer
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readBytesWireFormat(smallBuffer, bodyStart));
        }
    
        @Test
        @DisplayName("Should handle Reserved2 field correctly")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Given
                byte[] buffer = new byte[59]; // One byte too small
                SMBUtil.writeInt2(60, buffer, 0);
    
                // When & Then
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    response.readBytesWireFormat(buffer, 0);
                });
            }
        }
    
        @Nested
        @DisplayName("SmbBasicFileInfo Interface Tests")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top