- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 191 for CIFSContext (0.1 seconds)
-
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
private static SmbResourceLocatorImpl newLocator(CIFSContext ctx) { return new SmbResourceLocatorImpl(ctx, smbUrl("smb://server/share")); } @Test @DisplayName("Constructor with CIFSContext: creates instance") void constructor_withContext_createsInstance() { // Arrange CIFSContext ctx = mock(CIFSContext.class); // Act
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
*/ package jcifs.ntlmssp; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; /** * Represents an NTLMSSP Type-2 message. */ public class Type2Message extends NtlmMessage { private static final Logger log = LoggerFactory.getLogger(Type2Message.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
private static final String TEST_HOSTNAME = "TEST_HOSTNAME"; /** * Helper method to create a fully mocked CIFSContext with all necessary dependencies */ private CIFSContext createMockContext() { CIFSContext mockContext = mock(CIFSContext.class); Configuration mockConfig = mock(Configuration.class); NameServiceClient mockNameServiceClient = mock(NameServiceClient.class);
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/main/java/jcifs/internal/SmbNegotiationResponse.java
/** * Check if the negotiation response is valid * * @param cifsContext the CIFS context * @param request the negotiation request * @return whether the protocol negotiation was successful */ boolean isValid(CIFSContext cifsContext, SmbNegotiationRequest request); /** * Gets the SMB dialect version selected by the server. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/SmbTransportPool.java
* @return a connected transport * @throws UnknownHostException if the host cannot be resolved * @throws IOException if an I/O error occurs */ SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws UnknownHostException, IOException; /** * Get transport connection * * @param tcCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
@Mock private CIFSContext cifsContext; @BeforeEach void setup() { // Tree handle lifecycle and config lenient().when(tree.acquire()).thenReturn(tree); lenient().when(tree.isConnected()).thenReturn(true); // CIFS context returns same config to build responses during initResponse lenient().when(cifsContext.getConfig()).thenReturn(config); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmServletTest.java
transportContextField.set(ntlmServlet, cifsContext); } catch (Exception e) { throw new RuntimeException("Failed to inject mock CIFSContext", e); } when(cifsContext.getTransportPool()).thenReturn(transportPool); when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient); lenient().when(cifsContext.getConfig()).thenReturn(configuration);
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/context/AbstractCIFSContextTest.java
import java.net.URLStreamHandler; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.BufferCache; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.Configuration; import jcifs.Credentials; import jcifs.DfsResolver; import jcifs.NameServiceClient; import jcifs.SidResolver; import jcifs.SmbPipeResource;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.util.Encdec; @ExtendWith(MockitoExtension.class) class NtlmUtilTest { @Mock CIFSContext cifsContext; @Mock Configuration configuration; // Helper: decode hex string to bytesCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1) -
src/test/java/jcifs/SmbTransportTest.java
@Mock private CIFSContext cifsContext; @Mock private Address remoteAddress; @BeforeEach void setUp() { // Common setup for mocks if needed } @Test void testGetContext() { // Arrange when(smbTransport.getContext()).thenReturn(cifsContext); // Act CIFSContext result = smbTransport.getContext();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0)