Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testGetByNameWithLocalhost (0.1 seconds)

  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");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11K bytes
    - Click Count (0)
Back to Top