Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetDc_Success (0.08 sec)

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

        void testGetDc_DfsDisabled() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertNull(dfsResolver.getDc(mockContext, "anyDomain"));
        }
    
        @Test
        void testGetDc_Success() throws CIFSException, IOException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
    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/smb1/smb1/DfsTest.java

        void testGetDc_Disabled() throws SmbAuthException {
            // Test with disabled DFS
            testDfs.setDisabled(true);
            assertNull(testDfs.getDc("domain.com", auth));
        }
    
        @Test
        void testGetDc_Success() throws IOException, SmbAuthException {
            lenient().when(UniAddress.getByName("domain.com", true)).thenReturn(uniAddress);
            lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top