- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetLocalName (0.25 seconds)
-
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");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11K bytes - Click Count (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); // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.4K bytes - Click Count (0)