- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for shouldReturnZeroWhenStreamEmpty (0.37 sec)
-
src/test/java/jcifs/util/transport/TransportTest.java
assertThrows(IOException.class, () -> Transport.readn(is, new byte[5], 0, 10)); } @Test @DisplayName("readn should return 0 when no more bytes available") void shouldReturnZeroWhenStreamEmpty() throws IOException { InputStream is = new ByteArrayInputStream("Hi".getBytes()); byte[] buffer = new byte[10]; Transport.readn(is, buffer, 0, 2); // Read all
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0)