Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testIsShareDfsWithCapabilities (0.15 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            response.readBytesWireFormat(buffer, 0);
            assertTrue(response.isShareDfs());
        }
    
        @Test
        @DisplayName("Should correctly identify DFS share based on capabilities")
        void testIsShareDfsWithCapabilities() throws SMBProtocolDecodingException {
            // Test with DFS capability
            byte[] buffer = createValidResponseBuffer(0, 0, 0x8, 0);
            response.readBytesWireFormat(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                assertFalse(response.isShareDfs(), "Should not detect DFS without flags");
            }
    
            @Test
            @DisplayName("Should detect DFS from capabilities")
            void testIsShareDfsWithCapabilities() throws Exception {
                // Given
                setPrivateField(response, "shareFlags", 0);
                setPrivateField(response, "capabilities", Smb2TreeConnectResponse.SMB2_SHARE_CAP_DFS);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top