- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 279 for transports (0.05 sec)
-
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
@Mock private SmbTransport transport; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup transport fields that are accessed directly transport.tconHostName = "testHost"; // Setup session.transport field (accessed directly in SmbTree) session.transport = transport; // Setup session to return transport via method call
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
assertTrue(session.isInUse(), "New session should be in use due to transport acquisition"); // Test additional acquire session.acquire(); assertTrue(session.isInUse(), "Session should still be in use after additional acquire"); // Test release (still in use because of initial transport acquire) session.release();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Response.java
package jcifs.smb1.util.transport; /** * Abstract base class for transport layer response objects. * Represents a response that can be received through the SMB1 transport layer. */ public abstract class Response { /** * Default constructor for Response. */ public Response() { // Default constructor } /** * The expiration time for this response in milliseconds. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 557 bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
} /** * Get channel for specific transport * * @param transport transport instance * @return corresponding channel or null */ public ChannelInfo getChannelForTransport(SmbTransport transport) { return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null); } /** * Remove a channel *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
verify(transport, times(4)).close(); } @Test @DisplayName("isSMB2 true and exception fallback to false") void isSMB2Cases() throws Exception { // Happy path returns true; transport exception path returns false when(transport.isSMB2()).thenReturn(true); assertTrue(handle.isSMB2()); reset(transport);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
// Check if transport creation failed if (newTransport == null) { throw new IOException("Failed to create new transport"); } // Reconnect channel.setState(ChannelState.CONNECTING); // Connection would be ensured through proper transport interface // Re-establish channel binding
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 11.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
verify(session).getSessionKey(); } // Happy path: transport is returned and verified @Test @DisplayName("getTransport returns mocked transport") void getTransport_happy() { when(session.getTransport()).thenReturn(transport); assertSame(transport, session.getTransport()); verify(session).getTransport(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
private RdmaConnection rdmaConnection; private final Object connectionLock = new Object(); /** * Creates a new RDMA transport wrapping the given delegate transport. * * @param delegate the underlying SMB transport to wrap * @param context the CIFS context for configuration */ public RdmaTransport(SmbTransportInternal delegate, CIFSContext context) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
} @Test void testIsTrustedDomain_ConnectionFails() throws SmbAuthException { // Scenario: Transport connection fails when(mockCredentials.getUserDomain()).thenReturn("authdomain.com"); // When transport fails, it should return false assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com")); } // Tests for getDc @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) -
src/main/java/jcifs/smb/SmbSessionImpl.java
SmbSessionImpl(CIFSContext tf, String targetHost, String targetDomain, SmbTransportImpl transport) { this.transportContext = tf; this.targetDomain = targetDomain; this.targetHost = targetHost; this.transport = transport.acquire(); this.trees = new CopyOnWriteArrayList<>();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0)