Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testInvalidBufferSize (0.27 sec)

  1. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            assertEquals(context.getFlags(), decodedContext.getFlags());
        }
    
        @Test
        @DisplayName("Test invalid buffer size for decoding")
        public void testInvalidBufferSize() {
            byte[] smallBuffer = new byte[4]; // Too small
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                context.decode(smallBuffer, 0, smallBuffer.length);
            });
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/InputValidatorTest.java

            assertDoesNotThrow(() -> InputValidator.validateBufferSize(1000, 1000, "test"));
        }
    
        @Test
        @DisplayName("Test invalid buffer size validation")
        void testInvalidBufferSize() {
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateBufferSize(-1, 1000, "test"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top