Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getFileInformationLevel (0.62 sec)

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

            // Define behavior
            when(mockFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO);
    
            // Test interface method
            byte level = mockFileInfo.getFileInformationLevel();
            assertEquals(FileInformation.FILE_BASIC_INFO, level);
    
            // Verify interaction
            verify(mockFileInfo).getFileInformationLevel();
        }
    
        /**
         * Test FileInformation as Decodable
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            assertTrue(info.toString().contains("endOfFile=" + endOfFile));
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns correct value")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel());
    
            // Test with parameterized constructor
            FileEndOfFileInformation info = new FileEndOfFileInformation(5000L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            assertNotNull(info);
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns correct value")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_RENAME_INFO, fileRenameInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test size calculation with short filename")
        void testSizeWithShortFilename() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            when(mockBasicFileInfo.getLastAccessTime()).thenReturn(TEST_LAST_ACCESS_TIME);
            when(mockBasicFileInfo.getSize()).thenReturn(1024L);
            when(mockBasicFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO);
    
            // When & Then
            assertEquals(TEST_ATTRIBUTES, mockBasicFileInfo.getAttributes());
            assertEquals(TEST_CREATE_TIME, mockBasicFileInfo.getCreateTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

        }
    
        @Test
        @DisplayName("Test constructor with FileInformation parameter")
        void testConstructorWithFileInformation() {
            // Setup mock FileInformation
            when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO);
    
            // Create instance
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            // Verify initialization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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