- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for negativeLength (0.09 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
long negativeLength = -100L; int negativeFlags = -1; lock = new Smb2Lock(negativeOffset, negativeLength, negativeFlags); lock.encode(buffer, 0); // Negative values should be encoded as unsigned assertEquals(negativeOffset, SMBUtil.readInt8(buffer, 0)); assertEquals(negativeLength, SMBUtil.readInt8(buffer, 8));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
void testEncodeNegativeValues() { // Given long negativeOffset = -1L; int negativeLength = -1; SrvCopychunk chunk = new SrvCopychunk(negativeOffset, negativeOffset, negativeLength); // When int bytesWritten = chunk.encode(buffer, startIndex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
when(mock.getName()).thenReturn(null); assertNull(mock.getName()); } @Test @DisplayName("Negative length is allowed via mock") void negativeLength() { FileEntry mock = mock(FileEntry.class); when(mock.length()).thenReturn(-10L); assertEquals(-10L, mock.length()); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0)