- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for shouldThrowWhenBufferTooShort (0.54 seconds)
-
src/test/java/jcifs/util/transport/TransportTest.java
assertArrayEquals("Hello".getBytes(), java.util.Arrays.copyOfRange(buffer, 0, 5)); } @Test @DisplayName("readn should throw IOException when buffer too short") void shouldThrowWhenBufferTooShort() { InputStream is = new ByteArrayInputStream("test".getBytes()); assertThrows(IOException.class, () -> Transport.readn(is, new byte[5], 0, 10)); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0)