Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for 445 (0.01 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/smb/HandlerTest.java

        static Stream<Arguments> portSpecs() {
            return Stream.of(
                    // spec, expectedPort
                    Arguments.of("smb://server/share", SmbConstants.DEFAULT_PORT), Arguments.of("smb://server:445/share", 445),
                    Arguments.of("smb://server:139/share", 139));
        }
    
        @ParameterizedTest(name = "parseURL: {0} -> port {1}")
        @MethodSource("portSpecs")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            UniAddress uniAddress = new UniAddress(InetAddress.getByName("127.0.0.1"));
            SmbTransport transport = new SmbTransport(uniAddress, 445, null, 0);
            serverData = transport.new ServerData();
            response = new SmbComNegotiateResponse(serverData);
        }
    
        @Test
        void testReadParameterWordsWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top