- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 92 for UnknownHostException (0.13 seconds)
-
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) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
* @throws UnknownHostException if address cannot be resolved */ public static NbtAddress[] getAllByAddress(final NbtAddress addr) throws UnknownHostException { try { final NbtAddress[] addrs = CLIENT.getNodeStatus(addr); cacheAddressArray(addrs); return addrs; } catch (final UnknownHostException uhe) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.7K 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/test/java/jcifs/netbios/UniAddressTest.java
when(mockInetAddress.getHostName()).thenReturn("thisisverylonghostname"); UniAddress uniAddress = new UniAddress(mockInetAddress); assertEquals(NbtAddress.SMBSERVER_NAME, uniAddress.firstCalledName()); } @Test void shouldReturnUppercaseHostnameWhenInetAddressHostnameHasNoDotAndLengthLessThan15() throws UnknownHostException {
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) -
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/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* @throws SmbException if an SMB error occurs * @throws MalformedURLException if the URL is not properly formatted * @throws UnknownHostException if the host cannot be resolved */ public SmbFileOutputStream(final String url) throws SmbException, MalformedURLException, UnknownHostException { this(url, false); } /** * Creates an {@link java.io.OutputStream} for writing bytes to a file onCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11K bytes - Click Count (0)