- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for GetContext (0.28 sec)
-
src/test/java/jcifs/SmbTransportTest.java
// Arrange when(smbTransport.getContext()).thenReturn(cifsContext); // Act CIFSContext result = smbTransport.getContext(); // Assert assertNotNull(result, "Context should not be null"); assertEquals(cifsContext, result, "Returned context should be the mocked context"); verify(smbTransport).getContext(); // Verify that the method was called } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} @Override public int getInflightRequests() { return delegate.getInflightRequests(); } @Override public CIFSContext getContext() { return delegate.getContext(); } @Override @SuppressWarnings("unchecked") public <T extends SmbTransport> T unwrap(Class<T> type) { if (type.isAssignableFrom(this.getClass())) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
// Check if we can use directory leasing DirectoryLeaseManager dirManager = getDirectoryLeaseManager(th); if (dirManager != null && smbFile.getContext().getConfig().isUseDirectoryLeasing()) { return listFilesWithDirectoryLeasing(smbFile, dirManager); } else { // Fall back to regular directory listingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
private SmbTransportImpl transport; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); when(session.getConfig()).thenReturn(config); when(session.getContext()).thenReturn(context); when(session.getTransport()).thenReturn(transport); when(session.acquire()).thenReturn(session); when(config.isTraceResourceUsage()).thenReturn(false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
// Assert assertTrue(conn instanceof SmbFile); SmbFile file = (SmbFile) conn; assertNotNull(file.getContext(), "Context must be non-null"); assertSame(SingletonContext.getInstance(), file.getContext(), "Should use SingletonContext when none provided"); } @Test @DisplayName("parseURL: exact 'smb://' sets default port")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbSession.java
<T extends SmbSession> T unwrap(Class<T> type); /** * Returns the CIFS context that this session is attached to. * * @return the context this session is attached to */ CIFSContext getContext();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/SmbTransport.java
public interface SmbTransport extends AutoCloseable { /** * Gets the CIFS context associated with this transport. * * @return the context this transport is attached to */ CIFSContext getContext(); /** * Unwraps the transport to the specified type. * * @param <T> the type to unwrap to * @param type the class of the transport type to unwrapRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RequestTraceHelper.java
return "dependency collection for " + request; } else if (data instanceof CollectStepData stepData) { String msg = "dependency collection step for " + stepData.getContext(); if (detailed) { msg += ". Path to offending node from root:\n"; msg += stepData.getPath().stream() .map(n -> " -> " + n.toString())
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.2K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java
LocalMetadataResult result = new LocalMetadataResult(request); String path; Metadata metadata = request.getMetadata(); String context = request.getContext(); RemoteRepository remote = request.getRepository(); if (remote != null) { path = getPathForRemoteMetadata(metadata, remote, context); } else {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 5.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java
LocalMetadataResult result = new LocalMetadataResult(request); String path; Metadata metadata = request.getMetadata(); String context = request.getContext(); RemoteRepository remote = request.getRepository(); if (remote != null) { path = getPathForRemoteMetadata(metadata, remote, context); } else {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 5.5K bytes - Viewed (0)