Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 97 for FileId (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

        class SpecialValueConstants {
    
            @Test
            @DisplayName("Unspecified FileId should be 16 bytes of 0xFF")
            void testUnspecifiedFileId() {
                assertNotNull(Smb2Constants.UNSPECIFIED_FILEID, "Unspecified FileId should not be null");
                assertEquals(16, Smb2Constants.UNSPECIFIED_FILEID.length, "Unspecified FileId must be exactly 16 bytes");
    
                // Verify all bytes are 0xFF
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            int command = (int) commandField.get(request);
            assertEquals(0x0007, command); // SMB2_FLUSH value
    
            // Verify file ID is set
            Field fileIdField = Smb2FlushRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
            byte[] storedFileId = (byte[]) fileIdField.get(request);
            assertArrayEquals(testFileId, storedFileId);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            pos += 2;
            // 2 reserved bytes
            pos += 2;
            // ctlCode
            SMBUtil.writeInt4(ctlCode, buf, pos);
            pos += 4;
            // fileId (16 bytes)
            byte[] fid = fileId != null ? fileId : new byte[16];
            System.arraycopy(fid, 0, buf, pos, 16);
            pos += 16;
    
            // Calculate offsets relative to start of SMB2 header
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(5L, true, true);
    
            byte[] fileId = new byte[] { 0x0A, 0x0B };
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, fileId, tree, "//server/share/path", 0x1, 0x2, 0x3, 0x4, 123L);
    
            h.close(777L);
    
            // Verify SMB2 close path
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
                fileIdField = Smb2QueryInfoRequest.class.getDeclaredField("fileId");
                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Constructor should initialize with config, fileId and fileName")
            void testConstructorWithAllParameters() {
                // When
                Smb2CloseResponse closeResponse = new Smb2CloseResponse(mockConfig, testFileId, testFileName);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception {
            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(handle.getFileId()).thenReturn(fileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        }
    
        /**
         * Add a durable handle reconnect context to this request
         * @param fileId the 16-byte file ID from the previous open
         */
        public void addDurableHandleReconnectContext(byte[] fileId) {
            addCreateContext(new jcifs.internal.smb2.persistent.DurableHandleReconnect(fileId));
        }
    
        /**
         * Check if this request has durable handle contexts
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0x55);
    
            request.setFileId(newFileId);
            // FileId is set internally
            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Test createResponse method")
        void testCreateResponse() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top