- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for SmbEndOfFileException (0.15 seconds)
-
src/main/java/jcifs/smb/SmbEndOfFileException.java
* attempting to read beyond the end of a file. * * @author mbechler */ public class SmbEndOfFileException extends SmbException { /** * */ private static final long serialVersionUID = 298752101881244000L; /** * Constructs an end-of-file exception. */ public SmbEndOfFileException() { super("Unexpectedly reached end of file"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java
*/ @Test void assertThrowsCapturesExceptionAndMessage() { // Act & Assert SmbEndOfFileException thrown = assertThrows(SmbEndOfFileException.class, () -> { throw new SmbEndOfFileException(); }); assertEquals("Unexpectedly reached end of file", thrown.getMessage()); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} @Test @DisplayName("readFully(): throws SmbEndOfFileException on premature EOF") void readFully_throws_onEOF() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false)); doReturn(-1).when(raf).read(any(byte[].class), anyInt(), anyInt()); assertThrows(SmbEndOfFileException.class, () -> raf.readFully(new byte[4])); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0)