Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGetByNameWithLocalhost (0.11 sec)

  1. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

                nameServiceClient.getByName("");
            }, "Should throw UnknownHostException for empty hostname");
        }
    
        @Test
        @DisplayName("Should handle localhost in getByName")
        void testGetByNameWithLocalhost() throws UnknownHostException {
            // When
            Address address = nameServiceClient.getByName("localhost");
    
            // Then
            assertNotNull(address, "Should return address for localhost");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top