- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for validateFileOperation (0.39 seconds)
-
src/main/java/jcifs/util/ServerResponseValidator.java
* * @param offset file offset * @param length operation length * @param fileSize total file size * @throws SmbException if parameters are invalid */ public void validateFileOperation(long offset, long length, long fileSize) throws SmbException { totalValidations.incrementAndGet(); if (offset < 0) { failedValidations.incrementAndGet();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
public void testValidFileOperation() throws Exception { validator.validateFileOperation(0, 1024, 10000); validator.validateFileOperation(5000, 1000, 10000); } @Test public void testFileOperationNegativeOffset() throws Exception { assertThrows(SmbException.class, () -> { validator.validateFileOperation(-1, 100, 1000); }); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0)