Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SMB2_0_INFO_FILE (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            mockConfig = mock(Configuration.class);
        }
    
        @Test
        @DisplayName("Test constructor initializes with config and info type/class")
        void testConstructor() {
            byte infoType = Smb2Constants.SMB2_0_INFO_FILE;
            byte infoClass = FileInformation.FILE_INTERNAL_INFO;
    
            response = new Smb2QueryInfoResponse(mockConfig, infoType, infoClass);
    
            assertNotNull(response);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                assertEquals(41, SMBUtil.readInt2(buffer, 64));
    
                // Verify info type and file info class
                // setFileInfoClass sets the info type to SMB2_0_INFO_FILE (1)
                assertEquals(Smb2Constants.SMB2_0_INFO_FILE, buffer[66]);
                assertEquals((byte) 0x08, buffer[67]);
    
                // Verify output buffer length
                assertEquals(0x4000, SMBUtil.readInt4(buffer, 68));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

        @DisplayName("Info Level Constants")
        class InfoLevelConstants {
    
            @Test
            @DisplayName("File info level should be 1")
            void testInfoFile() {
                assertEquals(1, Smb2Constants.SMB2_0_INFO_FILE, "File info level must be 1");
            }
    
            @Test
            @DisplayName("Filesystem info level should be 2")
            void testInfoFilesystem() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                infoTypeField.setAccessible(true);
                byte actualInfoType = (byte) infoTypeField.get(request);
                assertEquals(Smb2Constants.SMB2_0_INFO_FILE, actualInfoType);
    
                Field fileInfoClassField = Smb2SetInfoRequest.class.getDeclaredField("fileInfoClass");
                fileInfoClassField.setAccessible(true);
    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