- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for smallBuffer (0.23 sec)
-
src/test/java/jcifs/util/EncdecTest.java
void testBufferBounds() { // Given byte[] smallBuffer = new byte[2]; // When/Then assertThrows(IndexOutOfBoundsException.class, () -> { Encdec.enc_uint32le(0x12345678, smallBuffer, 0); }); assertThrows(IndexOutOfBoundsException.class, () -> { Encdec.dec_uint32le(smallBuffer, 0); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
} @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); }); } @Test @DisplayName("Test algorithm name resolution") public void testAlgorithmNames() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_LZ77); byte[] smallBuffer = new byte[10]; // Too small assertThrows(CIFSException.class, () -> { compressionService.decompress(compressed, 0, compressed.length, smallBuffer, 0, CompressionService.COMPRESSION_LZ77); }); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0)