Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testUnknownHostException (0.95 sec)

  1. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            assertEquals(5, poolSpy.failCounts.get("10.0.0.1"));
        }
    
        @Test
        @DisplayName("Should throw UnknownHostException for empty address list")
        void testUnknownHostException() throws Exception {
            // Given: No addresses returned
            when(nameSvc.getAllByName(eq("unknown.host"), eq(true))).thenReturn(new Address[0]);
    
            // When/Then: Should throw UnknownHostException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
Back to top