- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for NameServiceClient (0.26 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 17.6K bytes - Click Count (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); // 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) -
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
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/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/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);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/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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmSspTest.java
import org.mockito.junit.jupiter.MockitoExtension; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.NameServiceClient; import jcifs.NetbiosAddress; import jcifs.smb.NtlmPasswordAuthentication; /** * JUnit 5 tests for the NtlmSsp class. * This class uses Mockito to simulate HttpServletRequest and HttpServletResponse objects.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.4K bytes - Click Count (1) -
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)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.3K bytes - Click Count (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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 38.5K bytes - Click Count (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());
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)