Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for InetAddress (0.05 sec)

  1. src/test/java/jcifs/smb1/UniAddressTest.java

        @Test
        void getAddressReturnsOriginalObject() {
            InetAddress dummy = mock(InetAddress.class);
            UniAddress ua = new UniAddress(dummy);
            assertSame(dummy, ua.getAddress(), "getAddress should return the wrapped address");
        }
    
        @Test
        void getHostNameDelegatesToWrappedInetAddress() {
            InetAddress dummy = mock(InetAddress.class);
            when(dummy.getHostName()).thenReturn("host.example.com");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            InetAddress localhost = InetAddress.getLocalHost();
            InetAddress loopback = InetAddress.getLoopbackAddress();
    
            // Use reflection to access private method for testing
            java.lang.reflect.Method method =
                    MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class);
            method.setAccessible(true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

        assertThat(request.url.toString()).isEqualTo("http://host-from-header.com/")
      }
    
      private class FakeSocket(
        private val localAddress: InetAddress,
        private val localPort: Int,
        private val remoteAddress: InetAddress = localAddress,
        private val remotePort: Int = 1234,
      ) : Socket() {
        override fun getInputStream() = Buffer().inputStream()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/Config.java

            final String addr = props.getProperty(key);
            if (addr != null) {
                try {
                    def = InetAddress.getByName(addr);
                } catch (final UnknownHostException uhe) {
                    log.error("Unknown host " + addr, uhe);
                }
            }
            return def;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/UniAddressTest.java

                InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
                UniAddress uniAddress = new UniAddress(inetAddress);
                assertEquals(uniAddress, uniAddress.unwrap(UniAddress.class));
            }
    
            @Test
            void shouldReturnNullWhenTypeIsNotAssignable() throws UnknownHostException {
                InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/UniAddress.java

        private static int[] resolveOrder;
        private static InetAddress baddr;
    
        private static LogStream log = LogStream.getInstance();
    
        static {
            final String ro = Config.getProperty("jcifs.smb1.resolveOrder");
            final InetAddress nbns = NbtAddress.getWINSAddress();
    
            try {
                baddr = Config.getInetAddress("jcifs.smb1.netbios.baddr", InetAddress.getByName("255.255.255.255"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/Config.java

        }
    
        /**
         * Retrieve an <code>InetAddress</code>. If the address is not
         * an IP address and cannot be resolved <code>null</code> will
         * be returned.
         *
         * @param key the property key to look up
         * @param def the default InetAddress to return if the property is not found or cannot be resolved
         * @return the property value as an InetAddress, or the default value
         */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ConfigTest.java

        }
    
        @Test
        @DisplayName("Should get InetAddress property with default value")
        void testGetInetAddressWithDefault() throws UnknownHostException {
            InetAddress localhost = InetAddress.getByName("localhost");
            InetAddress defaultAddress = InetAddress.getByName("127.0.0.1");
            assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("toInetAddress should return valid InetAddress")
        void testToInetAddressContract() throws UnknownHostException {
            // Given
            InetAddress expectedInetAddress = InetAddress.getByName("127.0.0.1");
            when(mockAddress.toInetAddress()).thenReturn(expectedInetAddress);
    
            // When
            InetAddress inetAddress = mockAddress.toInetAddress();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top