- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for 445 (0.33 sec)
-
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
void testPooledVsNonPooledConnections() { // When: Create pooled and non-pooled connections SmbTransportImpl pooled = pool.getSmbTransport(ctx, address, 445, false); SmbTransportImpl nonPooled = pool.getSmbTransport(ctx, address, 445, true); // Then: Pool should track pooled but not non-pooled assertTrue(pool.contains(pooled), "Pooled connection should be tracked");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
} } @Test @DisplayName("getDefaultPort returns SMB default port 445") void testGetDefaultPort() { // Act int port = handler.getDefaultPort(); // Assert assertEquals(445, port); assertEquals(SmbConstants.DEFAULT_PORT, port); } @Test @DisplayName("openConnection creates SmbFile for valid URL")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
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/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java
} @Test public void testCreateConnection() throws Exception { InetSocketAddress remote = new InetSocketAddress("localhost", 445); InetSocketAddress local = null; RdmaConnection connection = provider.createConnection(remote, local); assertNotNull(connection, "Connection should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
when(address.getHostName()).thenReturn("localhost"); // Create the transport with safe defaults (no real sockets) transport = new SmbTransportImpl(ctx, address, 445, null, 0, false); // Reset MID to a known starting point for deterministic behavior setField(transport, "mid", new AtomicLong()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
* - rdma.test.port=445 (target port, defaults to 445) */ public class RdmaIntegrationTest { private String testServer; private int testPort; private CIFSContext testContext; @BeforeEach public void setUp() throws Exception { testServer = System.getProperty("rdma.test.server"); String portStr = System.getProperty("rdma.test.port", "445");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
} if (ipv6) { // IPv6 sockaddr_in6 structure (Windows AF_INET6 = 23) SMBUtil.writeInt2(23, buffer, offset); // sa_family: AF_INET6 SMBUtil.writeInt2(445, buffer, offset + 2); // sin6_port SMBUtil.writeInt4(0, buffer, offset + 4); // sin6_flowinfo System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16); // sin6_addr
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
InetAddress remoteAddr = InetAddress.getByName("192.168.1.100"); NetworkInterfaceInfo localNic = new NetworkInterfaceInfo(localAddr, 1); NetworkInterfaceInfo remoteNic = new NetworkInterfaceInfo(remoteAddr, 445); // Mock transport doesn't have isConnected, but we can work around it ChannelInfo channel = new ChannelInfo("test-channel", mockTransport, localNic, remoteNic);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
/** * Verify that the hard‑coded default values are present. */ @Test @DisplayName("Default constant values match expectations") void defaultValues() { assertEquals(445, SmbConstants.DEFAULT_PORT); assertEquals(10, SmbConstants.DEFAULT_MAX_MPX_COUNT); assertEquals(30000, SmbConstants.DEFAULT_RESPONSE_TIMEOUT); assertEquals(35000, SmbConstants.DEFAULT_SO_TIMEOUT);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
void testContextInformation() { // Given Map<String, Object> initialContext = new HashMap<>(); initialContext.put("host", "server.example.com"); initialContext.put("port", 445); exception = new SmbOperationException(SmbOperationException.ErrorCode.ACCESS_DENIED, "Permission denied", null, SmbOperationException.RetryPolicy.DEFAULT, initialContext); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0)