Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for referral (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/DfsTest.java

            lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport);
    
            DfsReferral referral = new DfsReferral();
            referral.server = "dc1.domain.com";
            referral.next = referral;
            lenient().when(smbTransport.getDfsReferrals(auth, "\\domain.com", 1)).thenReturn(referral);
    
            UniAddress dcAddress = mock(UniAddress.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

        private DfsReferralRequestBuffer buffer;
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create buffer with simple path and referral level")
            void testConstructorWithSimplePath() {
                String path = "\\\\server\\share";
                int maxReferralLevel = 3;
    
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        @Mock
        private jcifs.CIFSContext ctx;
    
        @Mock
        private SmbSession session;
    
        @Mock
        private jcifs.DfsReferralData referral;
    
        @BeforeEach
        void resetMocks() {
            Mockito.reset(transport, ctx, session, referral);
        }
    
        // Happy path: hasCapability returns based on provided capability codes
        @ParameterizedTest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbResourceLocatorTest.java

        }
    
        @Test
        @DisplayName("Test DFS referral data")
        void testDfsReferralData() throws Exception {
            String url = "smb://server/share/path/";
            DummySmbResourceLocator loc = new DummySmbResourceLocator(url);
    
            // Initially no DFS referral
            assertNull(loc.getDfsReferral());
    
            // Set and retrieve DFS referral
            loc.setDfsReferral(dfs);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            }
        }
    
        @Nested
        @DisplayName("Combine Tests")
        class CombineTests {
    
            @Test
            @DisplayName("Should combine two referral data objects")
            void testCombine() {
                // Setup first referral
                DfsReferralDataImpl first = new DfsReferralDataImpl();
                when(mockReferral.getTtl()).thenReturn(300);
                when(mockReferral.getRFlags()).thenReturn(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportInternal.java

         */
        boolean ensureConnected() throws IOException;
    
        /**
         * Gets DFS referrals for the specified path.
         *
         * @param ctx the CIFS context
         * @param name the DFS path to resolve
         * @param targetHost the target host name
         * @param targetDomain the target domain
         * @param rn the referral number
         * @return dfs referral
         * @throws SmbException if an SMB error occurs
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbResourceLocator.java

         *         itself.
         */
    
        String getName();
    
        /**
         * Returns the DFS referral data associated with this resource if it has been resolved through DFS.
         *
         * @return dfs referral data
         */
        DfsReferralData getDfsReferral();
    
        /**
         * Everything but the last component of the URL representing this SMB
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

         * @throws CIFSException if an error occurs during comparison
         */
        boolean overlaps(SmbResourceLocator other) throws CIFSException;
    
        /**
         * Internal: for testing only
         *
         * @param dr the DFS referral data to process
         * @param reqPath the requested path to resolve
         * @return resolved unc path
         */
        String handleDFSReferral(DfsReferralData dr, String reqPath);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with concrete implementation
                assertDoesNotThrow(() -> concreteImplementation.stripPathConsumed(0));
            }
    
            @Test
            @DisplayName("Should return next referral data")
            void testNext() {
                // Test with mock
                when(mockReferralData.next()).thenReturn(mockReferralData);
                DfsReferralDataInternal next = mockReferralData.next();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DfsImplTest.java

            // Should not throw any exception.
            assertDoesNotThrow(() -> dfsImpl.cache(mockContext, "invalidpath", mockReferral));
        }
    
        @Test
        void testCache_ValidPath() {
            // Scenario: A valid referral is cached.
            DfsReferralDataInternal mockReferral = mock(DfsReferralDataInternal.class);
            when(mockReferral.getPathConsumed()).thenReturn(15); // e.g., "\\\\server\\share".length()
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top