Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetNbtAllByName (0.06 sec)

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

        }
    
        @Test
        @DisplayName("Should handle NetBIOS all by name with timeout")
        @Timeout(value = 2, unit = TimeUnit.SECONDS) // Force test timeout
        void testGetNbtAllByName() {
            // When/Then - Should throw UnknownHostException quickly
            UnknownHostException exception = assertThrows(UnknownHostException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/jcifs/NameServiceClientTest.java

            assertThrows(UnknownHostException.class, () -> nameServiceClient.getNbtAllByAddress(host));
            verify(nameServiceClient, times(1)).getNbtAllByAddress(host);
        }
    
        @Test
        void testGetNbtAllByName() throws UnknownHostException {
            // Arrange
            String host = "testHost";
            int type = 0x20;
            String scope = "testScope";
            InetAddress svr = mock(InetAddress.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top