- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getNbtByName (0.11 sec)
-
src/test/java/jcifs/NameServiceClientTest.java
when(nameServiceClient.getNbtByName(host, type, scope, svr)).thenReturn(expectedAddress); // Act NetbiosAddress actualAddress = nameServiceClient.getNbtByName(host, type, scope, svr); // Assert assertNotNull(actualAddress); assertEquals(expectedAddress, actualAddress); verify(nameServiceClient, times(1)).getNbtByName(host, type, scope, svr); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
// 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"); // Verify the exception message indicates name resolution failureRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} @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); } @OverrideRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
} } else if (host.length() == 0) { try { final Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[0] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
final NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if (pathInfo == null || server == null) { final String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb); } else { dc = nameServiceClient.getByName(server, possibleWorkgroup);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0)