- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for getByName (0.09 sec)
-
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
@Test @DisplayName("Should handle null hostname in getByName") void testGetByNameWithNull() { // When/Then assertThrows(UnknownHostException.class, () -> { nameServiceClient.getByName(null); }, "Should throw UnknownHostException for null hostname"); } @Test @DisplayName("Should handle empty hostname in getByName") void testGetByNameWithEmpty() { // When/Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
* <code>getByName</code> methods can be used for that. * * @param host hostname to resolve * @return the resolved NetBIOS address * @throws java.net.UnknownHostException if there is an error resolving the name */ public static NbtAddress getByName(final String host) throws UnknownHostException { return getByName(host, 0x00, null); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
// Use getByName to trigger populate assertNotNull(lmhosts.getByName("HOST1", mockContext)); assertNotNull(lmhosts.getByName("HOST2", mockContext)); assertNotNull(lmhosts.getByName("HOST3", mockContext)); assertNotNull(lmhosts.getByName("HOST4", mockContext)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
when(nameServiceClient.getByName(hostname, possibleNTDomainOrWorkgroup)).thenReturn(expectedAddress); // Act Address actualAddress = nameServiceClient.getByName(hostname, possibleNTDomainOrWorkgroup); // Assert assertNotNull(actualAddress); assertEquals(expectedAddress, actualAddress); verify(nameServiceClient, times(1)).getByName(hostname, possibleNTDomainOrWorkgroup);
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/main/java/jcifs/smb1/UniAddress.java
* @return the resolved UniAddress * @throws UnknownHostException if the host cannot be resolved */ public static UniAddress getByName(final String hostname) throws UnknownHostException { return getByName(hostname, false); } static boolean isDotQuadIP(final String hostname) { if (hostname != null && hostname.length() > 0 && Character.isDigit(hostname.charAt(0))) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
return false; } } return true; } @Override public UniAddress getByName(final String hostname) throws UnknownHostException { return getByName(hostname, false); } @Override public UniAddress getByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
private InetAddress witnessServer; private InetAddress serverAddress; @BeforeEach void setUp() throws Exception { witnessServer = InetAddress.getByName("192.168.1.200"); serverAddress = InetAddress.getByName("192.168.1.100"); // Setup mock configuration with lenient stubbing lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
* name resolution and session services are handled internally by the smb package. * * * * Applications can use the methods <code>getLocalHost</code>, * <code>getByName</code>, and * <code>getAllByAddress</code> to create a new NbtAddress instance. This * class is symmetric with {@link java.net.InetAddress}. * * * * <b>About NetBIOS:</b> The NetBIOS name
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
NameServiceClient(final int lport, final InetAddress laddr) { this.lport = lport; this.laddr = laddr; try { baddr = Config.getInetAddress("jcifs.smb1.netbios.baddr", InetAddress.getByName("255.255.255.255")); } catch (final UnknownHostException uhe) {} snd_buf = new byte[SND_BUF_SIZE]; rcv_buf = new byte[RCV_BUF_SIZE];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0)