- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 45 for GetContext (0.06 sec)
-
src/test/java/jcifs/SmbResourceTest.java
} @Test @DisplayName("getContext should return CIFSContext") void testGetContext() throws CIFSException { // Given SmbResource resource = createMockResource(); when(resource.getContext()).thenReturn(mockContext); // When CIFSContext context = resource.getContext(); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K 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/test/java/jcifs/ntlmssp/Type2MessageTest.java
// Then assertArrayEquals(testTargetInfo, message.getTargetInformation()); } @Test @DisplayName("setContext and getContext should work correctly") void testGetSetContext() { // Given CIFSContext mockContext = createMockContext(); Type2Message message = new Type2Message(mockContext);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java
trackingData.add(resolvedArtifact.toString()); indent.append(" "); trackingData.add(indent.toString() + node + " (" + collectStepTrace.getContext() + ")"); ListIterator<DependencyNode> iter = collectStepTrace .getPath() .listIterator(collectStepTrace.getPath().size());
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 29 08:17:07 UTC 2025 - 10.1K 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/smb1/ntlmssp/Type2Message.java
* authentication. */ public byte[] getContext() { return context; } /** * Sets the local security context. This is used by the client * to negotiate local authentication. * * @param context The local security context. */ public void setContext(final byte[] context) { this.context = context; } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13K 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) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
// Arrange SmbFile src = mock(SmbFile.class, RETURNS_DEEP_STUBS); SmbFile dest = mock(SmbFile.class); CIFSContext ctx = ctxWithIgnore(false); when(src.getContext()).thenReturn(ctx); // Force failure before any stream construction when(src.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(new SmbException("boom"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K 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)