- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for NameServiceClient (0.06 sec)
-
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/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/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/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/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/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) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
return addrs; } /** * {@inheritDoc} * * @see jcifs.NameServiceClient#getLocalHost() */ @Override public NbtAddress getLocalHost() { return this.localhostAddress; } /** * {@inheritDoc} * * @see jcifs.NameServiceClient#getLocalName() */ @Override public Name getLocalName() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K 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/main/java/jcifs/http/NetworkExplorer.java
byte[] challenge; final NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if (pathInfo == null || server == null) { final String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0)