Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for getHostname (0.1 sec)

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

                when(mockInetAddress.getHostName()).thenReturn("inet-host");
                UniAddress uniAddress = new UniAddress(mockInetAddress);
                assertEquals("inet-host", uniAddress.getHostName());
            }
    
            @Test
            void shouldReturnNbtAddressHostnameWhenWrappedIsNbtAddress() {
                when(mockNbtAddress.getHostName()).thenReturn("nbt-host");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java

                @Override
                public boolean isChangedClusterState(int status) {
                    // State has changed
                    return true;
                }
    
                @Override
                public String getHostname() {
                    return "test-hostname";
                }
            };
    
            FessConfig fessConfig = createTestFessConfig();
    
            // Register components
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test getHostName when hostname is known
            mockName = new Name(mockConfig, "KNOWNHOST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            assertEquals("KNOWNHOST", nbtAddress.getHostName());
        }
    
        @Test
        void testGetHostName_UnknownHost() {
            // Test getHostName when hostname is unknown, should return IP address
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/exentity/FileConfig.java

            for (final FileAuthentication fileAuth : fileAuthList) {
                if (logger.isDebugEnabled()) {
                    logger.debug("FileAuthentication: " + fileAuth.getProtocolScheme() + " " + fileAuth.getHostname() + ":" + fileAuth.getPort()
                            + " " + fileAuth.getUsername());
                }
                if (Constants.SAMBA.equals(fileAuth.getProtocolScheme())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Apr 03 09:24:53 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/LmhostsTest.java

            assertNotNull(result);
            assertEquals("TESTHOST", result.getHostName());
    
            // Test second host
            result = lmhosts.getByName("SERVER01", mockContext);
            assertNotNull(result);
            assertEquals("SERVER01", result.getHostName());
        }
    
        @Test
        void testGetByNameCaching() throws IOException {
            // Create a temporary lmhosts file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NbtAddress.java

                    if (this.getNameType() == 0x1D) {
                        for (final NetbiosAddress addr : addrs) {
                            if (addr.getNameType() == 0x20) {
                                return addr.getHostName();
                            }
                        }
                        return null;
                    }
                    if (this.isDataFromNodeStatus) {
                        /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
            when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
            when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN);
            when(mockConfig.isUseUnicode()).thenReturn(true);
    
            return mockContext;
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/UniAddress.java

         *
         * @return the hostname of this address
         */
    
        public String getHostName() {
            if (addr instanceof NbtAddress) {
                return ((NbtAddress) addr).getHostName();
            }
            return ((InetAddress) addr).getHostName();
        }
    
        /**
         * Return the IP address as text such as "192.168.1.15".
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            assertNotNull(systemHelper.getHostname());
            try {
                envMap.put("COMPUTERNAME", "xxx");
                assertEquals("xxx", systemHelper.getHostname());
            } finally {
                envMap.remove("COMPUTERNAME");
            }
            try {
                envMap.put("HOSTNAME", "yyy");
                assertEquals("yyy", systemHelper.getHostname());
            } finally {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(config.isIpcSigningEnforced()).thenReturn(true);
            when(config.getLogonShare()).thenReturn("IPC$");
    
            // Default address values
            when(address.getHostName()).thenReturn("test.host");
            when(address.getHostAddress()).thenReturn("192.168.1.100");
        }
    
        @Test
        @DisplayName("Should distinguish between pooled and non-pooled connections")
    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