- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getLoopbackAddress (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt
import okio.buffer import okio.source import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertThrows class UtilTest { @Test fun socketIsHealthy() { val localhost = InetAddress.getLoopbackAddress() val serverSocket = ServerSocket(0, 1, localhost) val socket = Socket() socket.connect(serverSocket.localSocketAddress) val socketSource = socket.source().buffer()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java
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); assertEquals(testAddress, info.getAddress());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
void testCreateChannelTransportWithLocalhostAddresses() throws Exception { InetAddress localhost = InetAddress.getLocalHost(); InetAddress loopback = InetAddress.getLoopbackAddress(); // Use reflection to access private method for testing java.lang.reflect.Method method =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
assertThat(client.connectionPool.idleConnectionCount()).isEqualTo(1) } @Test fun httpsWithIpAddress() { platform.assumeNotBouncyCastle() val localIpAddress = InetAddress.getLoopbackAddress().hostAddress // Create a certificate with an IP address in the subject alt name. val heldCertificate = HeldCertificate .Builder() .commonName("example.com")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)