Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetNodeStatus (0.15 sec)

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

        }
    
        @Test
        @DisplayName("Should handle node status for mock address with timeout")
        @Timeout(value = 2, unit = TimeUnit.SECONDS) // Force test timeout
        void testGetNodeStatus() throws UnknownHostException {
            // Given
            InetAddress realInetAddress = InetAddress.getByName("127.0.0.1");
            when(mockNetbiosAddress.toInetAddress()).thenReturn(realInetAddress);
    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

            // Act & Assert
            assertThrows(UnknownHostException.class, () -> nameServiceClient.getNbtByName(host));
            verify(nameServiceClient, times(1)).getNbtByName(host);
        }
    
        @Test
        void testGetNodeStatus() throws UnknownHostException {
            // Arrange
            NetbiosAddress nbtAddress = mock(NetbiosAddress.class);
            NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.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