Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testIsTrustedDomain_DfsDisabled (2.05 sec)

  1. src/test/java/jcifs/DfsResolverTest.java

        void setUp() {
            dfsResolver = new DfsImpl(mockContext);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        // Test for isTrustedDomain method
        @Test
        void testIsTrustedDomain_DfsDisabled() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertFalse(dfsResolver.isTrustedDomain(mockContext, "anyDomain"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DfsImplTest.java

            // The constructor is called in setUp(), so if no exception is thrown, this test passes.
            assertNotNull(dfsImpl);
        }
    
        // Tests for isTrustedDomain
        @Test
        void testIsTrustedDomain_DfsDisabled() throws SmbAuthException {
            // Scenario: DFS is disabled in the configuration.
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top