- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for NameServiceClient (0.4 sec)
-
src/main/java/jcifs/NameServiceClient.java
*/ package jcifs; import java.net.InetAddress; import java.net.UnknownHostException; /** * * This is an internal API for resolving names * * @author mbechler */ public interface NameServiceClient { /** * Gets the local host NetBIOS address. * * @return local host address */ NetbiosAddress getLocalHost(); /** * Gets the local host NetBIOS name. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
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
class NameServiceClientTest { @Mock private NameServiceClient nameServiceClient; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void testGetLocalHost() { // Arrange NetbiosAddress expectedAddress = mock(NetbiosAddress.class); when(nameServiceClient.getLocalHost()).thenReturn(expectedAddress); // 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) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
*/ private CIFSContext createMockContext() { CIFSContext mockContext = mock(CIFSContext.class); Configuration mockConfig = mock(Configuration.class); NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); NetbiosAddress mockHost = mock(NetbiosAddress.class); when(mockContext.getConfig()).thenReturn(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/main/java/jcifs/context/BaseContext.java
private final Configuration config; private final DfsResolver dfs; private final SidResolver sidResolver; private final Handler urlHandler; private final NameServiceClient nameServiceClient; private final BufferCache bufferCache; private final SmbTransportPool transportPool; private final CredentialsInternal defaultCredentials; /** * Construct a context *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
verify(mockDelegate).renewCredentials(locationHint, error); } @Test void testGetNameServiceClient() { // Test getNameServiceClient() method NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); when(mockDelegate.getNameServiceClient()).thenReturn(mockNameServiceClient); assertEquals(mockNameServiceClient, cifsContextWrapper.getNameServiceClient());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
void testGetNameServiceClient() { // When NameServiceClient nameServiceClient = context.getNameServiceClient(); // Then assertNotNull(nameServiceClient, "Name service client should not be null"); assertSame(nameServiceClient, context.getNameServiceClient(), "Should return same instance on multiple calls"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
*/ private CIFSContext createMockContext() { CIFSContext mockCtx = mock(CIFSContext.class); Configuration mockConfig = mock(Configuration.class); NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); NetbiosAddress mockHost = mock(NetbiosAddress.class); SecureRandom mockRandom = mock(SecureRandom.class); // Create a machine ID (32 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
@Mock private CIFSContext cifsContext; @Mock private Configuration configuration; @Mock private jcifs.SmbTransportPool transportPool; @Mock private NameServiceClient nameServiceClient; /** * Sets up the mock objects before each test. * @throws CIFSException */ @BeforeEach void setUp() throws CIFSException { ntlmServlet = new TestNtlmServlet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0)