Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 182 for getAttributes (0.2 seconds)

  1. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            public String getName() {
                return name;
            }
    
            @Override
            public int getType() {
                return type;
            }
    
            @Override
            public int getAttributes() {
                return 0;
            }
    
            @Override
            public long createTime() {
                return 0;
            }
    
            @Override
            public long lastModified() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            fileBothDirectoryInfo.decode(buffer, 0, buffer.length);
    
            // Verify
            assertEquals(expectedFilename, fileBothDirectoryInfo.getFilename());
        }
    
        @Test
        @DisplayName("Test getAttributes returns correct attributes")
        void testGetAttributes() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("file.txt", "FILE~1.TXT", true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(BasicFileInformation.FILE_STANDARD_INFO, fileStandardInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test getAttributes returns 0")
        void testGetAttributes() {
            assertEquals(0, fileStandardInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test getCreateTime returns 0")
        void testGetCreateTime() {
            assertEquals(0L, fileStandardInfo.getCreateTime());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                return filename;
            }
    
            @Override
            public int getType() {
                return SmbFile.TYPE_FILESYSTEM;
            }
    
            @Override
            public int getAttributes() {
                return extFileAttributes;
            }
    
            @Override
            public long createTime() {
                return creationTime;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            public String getName() {
                return name;
            }
    
            @Override
            public int getType() {
                return 0;
            }
    
            @Override
            public int getAttributes() {
                return 0;
            }
    
            @Override
            public long createTime() {
                return 0;
            }
    
            @Override
            public long lastModified() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

                return isDirectory;
            }
    
            /**
             * Gets the SMB file attributes for this cached item
             * @return the file attributes
             */
            public long getAttributes() {
                return attributes;
            }
    
            /**
             * Gets the creation timestamp of this cached item
             * @return the creation time
             */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

                    return name;
                }
    
                @Override
                public int getType() {
                    return 0;
                }
    
                @Override
                public int getAttributes() {
                    return 0;
                }
    
                @Override
                public long createTime() {
                    return 0;
                }
    
                @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                assertEquals(0, response.getFileAttributes());
            }
    
            @Test
            @DisplayName("getAttributes should return same as getFileAttributes")
            void testGetAttributes() {
                assertEquals(response.getFileAttributes(), response.getAttributes());
            }
    
            @Test
            @DisplayName("getFileId should return the file ID passed in constructor")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 26.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getAttributes should return file attributes")
            void testGetAttributes() throws CIFSException {
                // Given
                int expectedAttributes = 0x20; // FILE_ATTRIBUTE_ARCHIVE
                when(mockResource.getAttributes()).thenReturn(expectedAttributes);
    
                // When
                int attributes = mockResource.getAttributes();
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        }
    
        @Test
        @DisplayName("Test ServerInfo1 getAttributes")
        void testServerInfo1GetAttributes() throws Exception {
            NetServerEnum2Response.ServerInfo1 server = response.new ServerInfo1();
            int expectedAttributes = SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY;
            assertEquals(expectedAttributes, server.getAttributes());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.4K bytes
    - Click Count (0)
Back to Top