- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for getByName (0.05 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/ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/ConfigTest.java
InetAddress[] defaultArray = { InetAddress.getByName("0.0.0.0") }; InetAddress[] result = Config.getInetAddressArray(testProperties, "test.hosts", ",", defaultArray); assertEquals(2, result.length); assertEquals(InetAddress.getByName("localhost"), result[0]); assertEquals(InetAddress.getByName("127.0.0.1"), result[1]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K 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)); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessNotificationTest.java
} @Test void testAddIPAddresses() throws Exception { InetAddress ipv4 = InetAddress.getByName("192.168.1.100"); InetAddress ipv6 = InetAddress.getByName("2001:db8::1"); notification.addNewIPAddress(ipv4); notification.addNewIPAddress(ipv6); notification.addOldIPAddress(ipv4);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt
getByName("${prefix}TestRuntimeClasspath") { if (platformImplementation != null) { extendsFrom(platformImplementation) } } if (platformImplementation != null) { getByName("${prefix}TestCompileClasspath") { extendsFrom(getByName("platformImplementation")) } }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Aug 18 16:39:23 UTC 2025 - 12.8K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/Lmhosts.java
* @param host the hostname to resolve * @return the resolved NbtAddress or null if not found */ public synchronized static NbtAddress getByName(final String host) { return getByName(new Name(host, 0x20, null)); } synchronized static NbtAddress getByName(final Name name) { NbtAddress result = null; try { if (FILENAME != null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0)