- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 87 for InetAddress (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
public void testIncrementIPv6() throws UnknownHostException { InetAddress addressV6_66_0 = InetAddress.getByName("2001:db8::6600"); InetAddress addressV6_66_ff = InetAddress.getByName("2001:db8::66ff"); InetAddress addressV6_67_0 = InetAddress.getByName("2001:db8::6700"); InetAddress address = addressV6_66_0; for (int i = 0; i < 255; i++) { address = InetAddresses.increment(address);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 36.3K bytes - Click Count (0) -
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");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.containsExactly import java.net.InetAddress import java.net.UnknownHostException import java.util.Collections import okio.Buffer class FakeDns : Dns { private val hostAddresses: MutableMap<String, List<InetAddress>> = Collections.synchronizedMap(mutableMapOf())Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Feb 04 20:20:29 GMT 2026 - 2.6K bytes - Click Count (0) -
src/main/java/jcifs/Config.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.1K bytes - Click Count (0) -
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 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/IpAddressUtil.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/IpAddressUtilTest.java
@Test public void testGetUrlHost() throws UnknownHostException { // IPv4 localhost InetAddress ipv4Localhost = InetAddress.getByName("127.0.0.1"); assertEquals("127.0.0.1", IpAddressUtil.getUrlHost(ipv4Localhost)); // IPv6 localhost InetAddress ipv6Localhost = InetAddress.getByName("::1"); assertEquals("[::1]", IpAddressUtil.getUrlHost(ipv6Localhost)); // NullCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 8.9K bytes - Click Count (0) -
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));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
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(); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0)