Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testShortFileId (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(2048, SMBUtil.readInt4(buffer, 32));
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
                byte[] buffer = new byte[256];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertArrayEquals(Arrays.copyOfRange(longFileId, 0, 16), Arrays.copyOfRange(buffer, 16, 32));
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
                request.setData(new byte[10], 0, 10);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                assertThrows(NullPointerException.class, () -> req.size());
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
                byte[] buffer = new byte[256];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
Back to top