Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGetByNameWithNull (1.05 sec)

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

            assertEquals("0.0.0.0", unknownName.getName(), "Unknown name should be 0.0.0.0");
        }
    
        @Test
        @DisplayName("Should handle null hostname in getByName")
        void testGetByNameWithNull() {
            // When/Then
            assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getByName(null);
            }, "Should throw UnknownHostException for null hostname");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top