- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for read_returnsMinusOne_onEOF (0.38 sec)
-
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
byte[] buf = new byte[4]; assertEquals(0, raf.read(buf, 0, 0)); } @Test @DisplayName("read(): returns -1 when underlying read reports EOF") void read_returnsMinusOne_onEOF() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false)); // Stub the 3-arg read to signal EOF doReturn(-1).when(raf).read(any(byte[].class), anyInt(), eq(1));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0)