Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getByName (0.05 sec)

  1. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        @Test
        @DisplayName("Should handle null hostname in getByName")
        void testGetByNameWithNull() {
            // When/Then
            assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getByName(null);
            }, "Should throw UnknownHostException for null hostname");
        }
    
        @Test
        @DisplayName("Should handle empty hostname in getByName")
        void testGetByNameWithEmpty() {
            // When/Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

        }
    
        @Test
        void testAddIPAddresses() throws Exception {
            InetAddress ipv4 = InetAddress.getByName("192.168.1.100");
            InetAddress ipv6 = InetAddress.getByName("2001:db8::1");
    
            notification.addNewIPAddress(ipv4);
            notification.addNewIPAddress(ipv6);
            notification.addOldIPAddress(ipv4);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                    return false;
                }
            }
            return true;
        }
    
        @Override
        public UniAddress getByName(final String hostname) throws UnknownHostException {
            return getByName(hostname, false);
        }
    
        @Override
        public UniAddress getByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessClientTest.java

        private InetAddress witnessServer;
        private InetAddress serverAddress;
    
        @BeforeEach
        void setUp() throws Exception {
            witnessServer = InetAddress.getByName("192.168.1.200");
            serverAddress = InetAddress.getByName("192.168.1.100");
    
            // Setup mock configuration with lenient stubbing
            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

        }
    
        @Test
        void testChannelInfoCreation() throws Exception {
            // Test ChannelInfo creation
            InetAddress localAddr = InetAddress.getByName("192.168.1.10");
            InetAddress remoteAddr = InetAddress.getByName("192.168.1.100");
    
            NetworkInterfaceInfo localNic = new NetworkInterfaceInfo(localAddr, 1);
            NetworkInterfaceInfo remoteNic = new NetworkInterfaceInfo(remoteAddr, 445);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        void testGetHealthyChannels() throws UnknownHostException {
            assertTrue(channelManager.getHealthyChannels().isEmpty());
    
            // Add a healthy channel manually for testing
            InetAddress addr = InetAddress.getByName("192.168.1.100");
            NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000);
            NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

        @BeforeEach
        void setUp() throws UnknownHostException {
            loadBalancer = new ChannelLoadBalancer(mockChannelManager);
    
            InetAddress addr1 = InetAddress.getByName("192.168.1.100");
            InetAddress addr2 = InetAddress.getByName("192.168.1.101");
            NetworkInterfaceInfo local = new NetworkInterfaceInfo(addr1, 1000);
            NetworkInterfaceInfo remote1 = new NetworkInterfaceInfo(addr1, 1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/config/PropertyConfiguration.java

                    this.winsServer = new InetAddress[] { InetAddress.getByName(value) };
                } catch (UnknownHostException e) {
                    // Invalid address ignored
                }
            }
    
            value = props.getProperty("jcifs.netbios.laddr");
            if (value != null) {
                try {
                    this.netbiosLocalAddress = InetAddress.getByName(value);
                } catch (UnknownHostException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

    class NetworkInterfaceInfoTest {
    
        private InetAddress testAddress;
        private InetAddress loopbackAddress;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            testAddress = InetAddress.getByName("192.168.1.100");
            loopbackAddress = InetAddress.getLoopbackAddress();
        }
    
        @Test
        void testConstructor() {
            NetworkInterfaceInfo info = new NetworkInterfaceInfo(testAddress, 1000);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

    public class WitnessRegistrationTest {
    
        private WitnessRegistration registration;
        private InetAddress serverAddress;
    
        @BeforeEach
        void setUp() throws Exception {
            serverAddress = InetAddress.getByName("192.168.1.100");
            registration = new WitnessRegistration("\\\\server\\share", serverAddress, WitnessServiceType.FILE_SERVER_WITNESS);
        }
    
        @Test
        void testRegistrationCreation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top