Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for getByName (0.04 sec)

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

        @Test
        @DisplayName("Should handle null hostname in getByName")
        void testGetByNameWithNull() {
            // When/Then
            assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getByName(null);
            }, "Should throw UnknownHostException for null hostname");
        }
    
        @Test
        @DisplayName("Should handle empty hostname in getByName")
        void testGetByNameWithEmpty() {
            // When/Then
    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/ConfigTest.java

            InetAddress[] defaultArray = { InetAddress.getByName("0.0.0.0") };
    
            InetAddress[] result = Config.getInetAddressArray(testProperties, "test.hosts", ",", defaultArray);
            assertEquals(2, result.length);
            assertEquals(InetAddress.getByName("localhost"), result[0]);
            assertEquals(InetAddress.getByName("127.0.0.1"), result[1]);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/UniAddressTest.java

            private NbtAddress nbtAddress2;
    
            @BeforeEach
            void setup() throws UnknownHostException {
                inetAddress1 = InetAddress.getByName("192.168.1.1");
                inetAddress2 = InetAddress.getByName("192.168.1.2");
                nbtAddress1 = mock(NbtAddress.class);
                nbtAddress2 = mock(NbtAddress.class);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

              (
                "00008180000100010000000006676f6f676c6503636f6d0000010001c00c0001000100000043" +
                  "0004d83ad54e"
              ).decodeHex(),
          )
        assertThat(encoded).containsExactly(InetAddress.getByName("216.58.213.78"))
      }
    
      @Test
      fun testGoogleDotComDecodingFromGoogle() {
        val decoded =
          decodeAnswers(
            hostname = "test.com",
            byteString =
              (
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 20:09:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NbtAddress.java

         * <code>getByName</code> methods can be used for that.
         *
         * @param host hostname to resolve
         * @return the resolved NetBIOS address
         * @throws java.net.UnknownHostException if there is an error resolving the name
         */
    
        public static NbtAddress getByName(final String host) throws UnknownHostException {
            return getByName(host, 0x00, null);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/LmhostsTest.java

            // Use getByName to trigger populate
            assertNotNull(lmhosts.getByName("HOST1", mockContext));
            assertNotNull(lmhosts.getByName("HOST2", mockContext));
            assertNotNull(lmhosts.getByName("HOST3", mockContext));
            assertNotNull(lmhosts.getByName("HOST4", mockContext));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

        }
    
        @Test
        void testAddIPAddresses() throws Exception {
            InetAddress ipv4 = InetAddress.getByName("192.168.1.100");
            InetAddress ipv6 = InetAddress.getByName("2001:db8::1");
    
            notification.addNewIPAddress(ipv4);
            notification.addNewIPAddress(ipv6);
            notification.addOldIPAddress(ipv4);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. buildSrc/src/main/kotlin/Osgi.kt

      bndProperties: Array<out String>,
    ) {
      val osgi = project.sourceSets.create("osgi")
      val osgiApi = project.configurations.getByName(osgiApiConfigurationName)
    
      project.dependencies {
        osgiApi(kotlinOsgi)
      }
    
      val jarTask = tasks.getByName<Jar>(jarTaskName)
      val bundleExtension =
        jarTask.extensions.findByType() ?: jarTask.extensions.create(
          BundleTaskExtension.NAME,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 08:06:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/NameServiceClientTest.java

            when(nameServiceClient.getByName(hostname, possibleNTDomainOrWorkgroup)).thenReturn(expectedAddress);
    
            // Act
            Address actualAddress = nameServiceClient.getByName(hostname, possibleNTDomainOrWorkgroup);
    
            // Assert
            assertNotNull(actualAddress);
            assertEquals(expectedAddress, actualAddress);
            verify(nameServiceClient, times(1)).getByName(hostname, possibleNTDomainOrWorkgroup);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/Lmhosts.java

         * @param host the hostname to resolve
         * @return the resolved NbtAddress or null if not found
         */
    
        public synchronized static NbtAddress getByName(final String host) {
            return getByName(new Name(host, 0x20, null));
        }
    
        synchronized static NbtAddress getByName(final Name name) {
            NbtAddress result = null;
    
            try {
                if (FILENAME != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top