- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testGetRemoteHostName (0.12 sec)
-
src/test/java/jcifs/SmbTransportTest.java
assertEquals(remoteAddress, result, "Returned remote address should be the mocked address"); verify(smbTransport).getRemoteAddress(); // Verify that the method was called } @Test void testGetRemoteHostName() { // Arrange String hostName = "testHost"; when(smbTransport.getRemoteHostName()).thenReturn(hostName); // Act String result = smbTransport.getRemoteHostName();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
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)