- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 76 for UnknownHostException (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/netbios/NbtAddressTest.java
verify(mockNameServiceClient).getNodeStatus(nbtAddress); } @Test void testNextCalledName_SmbServerName_UnknownHostException() throws UnknownHostException { // Test nextCalledName when getNodeStatus throws UnknownHostException when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); mockName = new Name(mockConfig, "HOST", 0x20, null);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
void testGetNbtByName() { // When/Then - Should throw UnknownHostException quickly due to short timeouts UnknownHostException exception = assertThrows(UnknownHostException.class, () -> { nameServiceClient.getNbtByName("NONEXISTENT-FAST-FAIL"); }, "Should throw UnknownHostException for non-existent NetBIOS name");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11K bytes - Click Count (0) -
src/main/java/jcifs/NameServiceClient.java
* * @param addr * the address to query * @return resolved addresses * @throws UnknownHostException * if address cannot be resolved */ NetbiosAddress[] getNbtAllByAddress(NetbiosAddress addr) throws UnknownHostException; /** * Retrieve all addresses of a host by it's address. NetBIOS hosts canCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
} public void testForStringIPv4NonAsciiInput() throws UnknownHostException { String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits // Shouldn't hit DNS, because it's an IP string literal. InetAddress ipv4Addr; try { ipv4Addr = InetAddress.getByName(ipStr); } catch (UnknownHostException e) { // OK: this is probably Android, which is stricter. return; }
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/main/java/jcifs/netbios/NameServiceClientImpl.java
} } throw new UnknownHostException(addr.getHostName()); } @Override public NbtAddress getNbtByName(final String host) throws UnknownHostException { return getNbtByName(host, 0x00, null); } @Override public NbtAddress getNbtByName(final String host, final int type, final String scope) throws UnknownHostException { return getNbtByName(host, type, scope, null);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 38.5K bytes - Click Count (0) -
src/test/java/jcifs/NameServiceClientTest.java
void testGetNbtAllByAddress_NetbiosAddress_ThrowsUnknownHostException() throws UnknownHostException { // Arrange NetbiosAddress inputAddress = mock(NetbiosAddress.class); when(nameServiceClient.getNbtAllByAddress(inputAddress)).thenThrow(new UnknownHostException("Host not found")); // Act & Assert assertThrows(UnknownHostException.class, () -> nameServiceClient.getNbtAllByAddress(inputAddress));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.4K bytes - Click Count (0) -
src/main/java/jcifs/NetbiosAddress.java
* @throws UnknownHostException * if the host cannot be resolved to find out. */ boolean isInConflict(CIFSContext tc) throws UnknownHostException; /** * Determines if this address is active. * * @param tc * context to use * @return whether this address is active * * @throws UnknownHostExceptionCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.1K bytes - Click Count (0) -
src/test/java/jcifs/AddressTest.java
} @Test @DisplayName("toInetAddress should handle UnknownHostException") void testToInetAddressWithException() throws UnknownHostException { // Given when(mockAddress.toInetAddress()).thenThrow(new UnknownHostException("Host not found")); // When & Then assertThrows(UnknownHostException.class, () -> { mockAddress.toInetAddress();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
return this } @Throws(UnknownHostException::class) fun lookup( hostname: String, index: Int, ): InetAddress = hostAddresses[hostname]!![index] @Throws(UnknownHostException::class) override fun lookup(hostname: String): List<InetAddress> { requestedHosts.add(hostname) return hostAddresses[hostname] ?: throw UnknownHostException() }
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/smb1/UniAddress.java
* @throws UnknownHostException if the host cannot be resolved */ public static UniAddress[] getAllByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException { Object addr; int i; if (hostname == null || hostname.length() == 0) { throw new UnknownHostException(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17K bytes - Click Count (0)