Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with mock
                doNothing().when(mockReferralData).fixupDomain(domain);
                mockReferralData.fixupDomain(domain);
                verify(mockReferralData, times(1)).fixupDomain(domain);
    
                // Test with concrete implementation - requires server to be set
                assertDoesNotThrow(() -> concreteImplementation.fixupDomain(domain));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                referralData.fixupDomain("example.com");
    
                assertEquals("SERVER.example.com", referralData.getServer());
            }
    
            @Test
            @DisplayName("Should not fixup domain for qualified name")
            void testFixupDomainWithQualifiedName() {
                setupReferralWithServer("server.example.com");
    
                referralData.fixupDomain("otherdomain.com");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DfsImpl.java

                    }
    
                    if (tf.getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl) {
                        ((DfsReferralDataImpl) dr).fixupDomain(domain);
                    }
                }
            }
    
            if (dr == null && path != null) {
                dr = getStandaloneCached(domain, root, path, now);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

            if (i > this.pathConsumed) {
                throw new IllegalArgumentException("Stripping more than consumed");
            }
            this.pathConsumed -= i;
        }
    
        @Override
        public void fixupDomain(final String dom) {
            final String s = getServer();
            if (s.indexOf('.') < 0 && s.toUpperCase(Locale.ROOT).equals(s)) {
                final String fqdn = s + "." + dom;
                if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top