Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getRemoteHostName (0.07 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

            jcifs.SmbTransport mock = mock(jcifs.SmbTransport.class);
            // Stub the getRemoteHostName method
            when(mock.getRemoteHostName()).thenReturn("test-host");
            // Verify the stubbing
            assertEquals("test-host", mock.getRemoteHostName());
            // Ensure that the mock was interacted with
            verify(mock).getRemoteHostName();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

        }
    
        /**
         * Test for getRemoteHostName() method.
         * Verifies that the method returns the correct remote host name.
         */
        @Test
        void testGetRemoteHostName() {
            when(smbTreeHandle.getRemoteHostName()).thenReturn("test-server");
            assertEquals("test-server", smbTreeHandle.getRemoteHostName(), "Remote host name should be test-server");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbTransportTest.java

            when(smbTransport.getRemoteHostName()).thenReturn(hostName);
    
            // Act
            String result = smbTransport.getRemoteHostName();
    
            // Assert
            assertNotNull(result, "Remote host name should not be null");
            assertEquals(hostName, result, "Returned remote host name should be the mocked host name");
            verify(smbTransport).getRemoteHostName(); // Verify that the method was called
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbTransport.java

         * @return the connected address
         */
        Address getRemoteAddress();
    
        /**
         * Gets the host name of the remote SMB server.
         *
         * @return the connected host name
         */
        String getRemoteHostName();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbTreeHandle.java

         * @return whether this tree handle uses SMB2+
         */
        boolean isSMB2();
    
        /**
         * Gets the remote host name for this tree connection
         * @return the remote host name
         */
        String getRemoteHostName();
    
        /**
         * Gets the tree type (share type such as disk, printer, pipe, etc.)
         * @return the tree type
         */
        int getTreeType();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

            delegate.close();
        }
    
        @Override
        public Address getRemoteAddress() {
            return delegate.getRemoteAddress();
        }
    
        @Override
        public String getRemoteHostName() {
            return delegate.getRemoteHostName();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top