Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testFileAttributes (1.13 sec)

  1. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x8000, SmbConstants.CAP_LARGE_WRITEX);
            assertEquals(0x80000000, SmbConstants.CAP_EXTENDED_SECURITY);
        }
    
        @Test
        @DisplayName("Should define file attribute constants")
        void testFileAttributes() {
            assertEquals(0x01, SmbConstants.ATTR_READONLY);
            assertEquals(0x02, SmbConstants.ATTR_HIDDEN);
            assertEquals(0x04, SmbConstants.ATTR_SYSTEM);
            assertEquals(0x08, SmbConstants.ATTR_VOLUME);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Test timestamps
            long lastModified = file.lastModified();
            assertTrue(lastModified > 0, "Last modified time should be positive");
        }
    
        @Test
        void testFileAttributes() throws Exception {
            SmbFile file = new SmbFile(baseUrl + "shared/attributes.txt", context);
            file.createNewFile();
    
            // Test basic attributes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top