- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for getNameServiceClient (0.17 seconds)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
void testGetNameServiceClient() { // Test getNameServiceClient() method NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); when(mockDelegate.getNameServiceClient()).thenReturn(mockNameServiceClient); assertEquals(mockNameServiceClient, cifsContextWrapper.getNameServiceClient()); verify(mockDelegate).getNameServiceClient(); } @Test void testGetBufferCache() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/main/java/jcifs/http/NtlmHttpFilter.java
} dc = chal.dc; challenge = chal.challenge; } else { dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true); challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.3K bytes - Click Count (0) -
src/test/java/jcifs/context/BaseContextTest.java
} @Test @DisplayName("getNameServiceClient should return initialized name service client") void testGetNameServiceClient() { // When NameServiceClient nameServiceClient = context.getNameServiceClient(); // Then assertNotNull(nameServiceClient, "Name service client should not be null");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
} }; @BeforeEach void setup() { when(ctx.getConfig()).thenReturn(config); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getNameServiceClient()).thenReturn(nsc); } private static URL smbUrl(String spec) { try { return new URL(null, spec, SMB_HANDLER); } catch (Exception e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
} @Test void testNextCalledName_SmbServerName_NameType0x1D() throws UnknownHostException { // Test nextCalledName when calledName is SMBSERVER_NAME and nameType is 0x1D when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); mockName = new Name(mockConfig, "MASTERBROWSER", 0x1D, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (0) -
src/main/java/jcifs/http/NetworkExplorer.java
if (msg.startsWith("NTLM ")) { byte[] challenge; final NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if (pathInfo == null || server == null) { final String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 23.4K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NbtAddress.java
if (this.hostName.isUnknown()) { tc.getNameServiceClient().getNbtAllByAddress(this); } } void checkNodeStatusData(final CIFSContext tc) throws UnknownHostException { if (!this.isDataFromNodeStatus) { tc.getNameServiceClient().getNbtAllByAddress(this); } } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true); } } else if (path.length() == 0 || path.equals("/")) { this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); } else { this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 23.6K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
NetbiosAddress mockHost = mock(NetbiosAddress.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
void setUp() { // Setup mock context with lenient stubbing to avoid UnnecessaryStubbingException lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost); lenient().when(mockLocalHost.getHostName()).thenReturn("localhost");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0)