Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            assertTrue(exception.getMessage().contains("got: 64"));
        }
    
        /**
         * Test that insufficient buffer size is properly detected.
         */
        @Test
        public void testInsufficientBufferSize() {
            byte[] tooSmallBuffer = new byte[32]; // Much smaller than required 65 bytes
    
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top