Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetAllByName (0.2 sec)

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

            assertEquals("127.0.0.1", address.getHostAddress(), "Should return correct IP address");
        }
    
        @Test
        @DisplayName("Should get all addresses by name")
        void testGetAllByName() throws UnknownHostException {
            // When
            Address[] addresses = nameServiceClient.getAllByName("localhost", false);
    
            // Then
            assertNotNull(addresses, "Should return addresses array");
    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.getNodeStatus(nbtAddress));
            verify(nameServiceClient, times(1)).getNodeStatus(nbtAddress);
        }
    
        @Test
        void testGetAllByName() throws UnknownHostException {
            // Arrange
            String hostname = "testHostname";
            boolean possibleNTDomainOrWorkgroup = true;
            Address[] expectedAddresses = { mock(Address.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