Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for getFileInformationLevel (0.15 sec)

  1. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

        void setUp() {
            fileStandardInfo = new FileStandardInfo();
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns FILE_STANDARD_INFO")
        void testGetFileInformationLevel() {
            assertEquals(BasicFileInformation.FILE_STANDARD_INFO, fileStandardInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test getAttributes returns 0")
        void testGetAttributes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

        @BeforeEach
        void setUp() {
            fileInternalInfo = new FileInternalInfo();
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns FILE_INTERNAL_INFO")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_INTERNAL_INFO, fileInternalInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test initial indexNumber value is 0")
        void testInitialIndexNumber() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

        private boolean directory;
    
        /**
         * Default constructor for decoding file standard information.
         */
        public FileStandardInfo() {
        }
    
        @Override
        public byte getFileInformationLevel() {
            return FILE_STANDARD_INFO;
        }
    
        @Override
        public int getAttributes() {
            return 0;
        }
    
        @Override
        public long getCreateTime() {
            return 0L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            assertEquals(TEST_ATTRIBUTES, info.getAttributes());
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns correct value")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_BASIC_INFO, fileBasicInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test getSize always returns 0")
        void testGetSize() {
            // Default instance
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(Trans2QueryPathInformation.mapInformationLevel(this.info.getFileInformationLevel()), dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

         */
        public <T extends FileInformation & Encodable> void setFileInformation(final T fi) {
            setInfoType(Smb2Constants.SMB2_0_INFO_FILE);
            setFileInfoClass(fi.getFileInformationLevel());
            setInfo(fi);
        }
    
        /**
         * Sets the encodable information object for this request
         *
         * @param info
         *            the info to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            // Create a mock FileInformation that is also Encodable
            TestFileInformation mockFileInfo = mock(TestFileInformation.class);
            byte expectedLevel = (byte) 0x04;
            when(mockFileInfo.getFileInformationLevel()).thenReturn(expectedLevel);
    
            request.setFileInformation(mockFileInfo);
    
            // Verify the info type, file info class, and info object were set
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
Back to top