- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testGetLocalName (0.45 sec)
-
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
// Create the name service client with mock context nameServiceClient = new NameServiceClientImpl(mockContext); } @Test @DisplayName("Should get local host name") void testGetLocalName() { // When NetbiosName localName = nameServiceClient.getLocalName(); // Then assertNotNull(localName, "Local name should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
// Assert assertNotNull(actualAddress); assertEquals(expectedAddress, actualAddress); verify(nameServiceClient, times(1)).getLocalHost(); } @Test void testGetLocalName() { // Arrange NetbiosName expectedName = mock(NetbiosName.class); when(nameServiceClient.getLocalName()).thenReturn(expectedName); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0)