- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetDc_Success (0.11 seconds)
-
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.6K bytes - Click Count (0)