- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getSmbTransport (0.23 sec)
-
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
transport.server = serverData; smbtStatic = mockStatic(SmbTransport.class); smbtStatic.when(() -> SmbTransport.getSmbTransport(addr, 445, inet, 0, null)).thenReturn(transport); smbtStatic.when(() -> SmbTransport.getSmbTransport(addr, 445)).thenReturn(transport); } @AfterEach void tearDown() { if (smbtStatic != null) { smbtStatic.close(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbTransportPool.java
* @return a connected transport * @throws UnknownHostException if the host cannot be resolved * @throws IOException if an I/O error occurs */ SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws UnknownHostException, IOException; /** * Get transport connection * * @param tc
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
} @Test void testGetDc_Success() throws IOException, SmbAuthException { lenient().when(UniAddress.getByName("domain.com", true)).thenReturn(uniAddress); lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport); DfsReferral referral = new DfsReferral(); referral.server = "dc1.domain.com"; referral.next = referral;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/DfsResolverTest.java
when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport); when(mockTransport.unwrap(any())).thenReturn(mockTransport);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
when(mockConfig.getDfsTtl()).thenReturn(300L); // Mock transport to throw IOException - simulating connection failure when(mockTransportPool.getSmbTransport(any(CIFSContext.class), anyString(), anyInt(), anyBoolean(), anyBoolean())) .thenThrow(new IOException("Connection failed")); // Instantiate the class under test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0)