Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testGetAttributes (0.59 sec)

  1. 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() {
    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/smb1/net/SmbShareInfoTest.java

            assertEquals(SmbConstants.TYPE_SHARE, info.getType());
        }
    
        @Test
        @DisplayName("Test getAttributes always returns readonly directory")
        void testGetAttributes() {
            // Default instance
            assertEquals(SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, shareInfo.getAttributes());
    
            // Instance with values - attributes are still constant
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbResourceTest.java

                assertFalse(canWrite, "Should not be writable");
            }
    
            @Test
            @DisplayName("getAttributes should return file attributes")
            void testGetAttributes() throws CIFSException {
                // Given
                int expectedAttributes = 0x20; // FILE_ATTRIBUTE_ARCHIVE
                when(mockResource.getAttributes()).thenReturn(expectedAttributes);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  5. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top