- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 192 for get_config (2.15 sec)
-
src/main/java/jcifs/ntlmssp/Type1Message.java
* environment. * * @param tc * context to use */ public Type1Message(final CIFSContext tc) { this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName()); } /** * Creates a Type-1 message with the specified parameters. * * @param tc * context to use
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
} private void setupMockConfig() { when(mockConfig.getTransactionBufferSize()).thenReturn(65536); } private void setupMockContext() { when(mockContext.getConfig()).thenReturn(mockConfig); } @Test @DisplayName("Test constructor with config and control code") void testConstructorWithConfigAndControlCode() { setupMockConfig();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
private Configuration mockConfig; @BeforeEach void setUp() { mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLeaseTimeout()).thenReturn(30000); when(mockConfig.getMaxLeases()).thenReturn(1000); when(mockConfig.getLeaseBreakTimeout()).thenReturn(60);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
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); when(context.getConfig()).thenReturn(config); when(session.isConnected()).thenReturn(true); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
return new URL(null, spec, new Handler()); } @Test @DisplayName("getConfig returns context config") void getConfig_returnsConfig() { SmbTreeConnection c = newConn(); assertSame(config, c.getConfig()); } @Test @DisplayName("acquire calls tree.acquire on first usage, release calls tree.release at zero")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java
@Override protected Smb2TreeDisconnectResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2TreeDisconnectResponse> req) { return new Smb2TreeDisconnectResponse(tc.getConfig()); } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#size() */ @Override public int size() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
assertTrue(resp.isLoggedInAsGuest(), "Guest/anonymous should be detected"); // prepare should propagate session id when received CIFSContext mockCtx = mock(CIFSContext.class); when(mockCtx.getConfig()).thenReturn(mock(Configuration.class)); Smb2SessionSetupRequest nextReq = new Smb2SessionSetupRequest(mockCtx, 0, 0, 0L, null); assertEquals(0L, nextReq.getSessionId()); resp.prepare(nextReq);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
docs/smb3-features/06-witness-protocol-design.md
assertTrue(file.exists()); } @Test public void testWitnessServiceDiscovery() throws Exception { CIFSContext context = getTestContext(); context.getConfig().setProperty("jcifs.smb.client.useWitness", "true"); context.getConfig().setProperty("jcifs.smb.client.witnessServiceDiscovery", "true"); SmbSession session = new SmbSession(context, transport); session.initializeWitnessSupport();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
src/main/java/jcifs/SmbTreeHandle.java
* */ public interface SmbTreeHandle extends AutoCloseable { /** * Gets the active configuration for this tree handle * @return the active configuration */ Configuration getConfig(); /** * {@inheritDoc} * * @see java.lang.AutoCloseable#close() */ @Override void close() throws CIFSException; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/DfsResolverTest.java
@Mock private SmbTransportInternal mockTransport; @BeforeEach void setUp() { dfsResolver = new DfsImpl(mockContext); when(mockContext.getConfig()).thenReturn(mockConfig); } // Test for isTrustedDomain method @Test void testIsTrustedDomain_DfsDisabled() throws CIFSException { when(mockConfig.isDfsDisabled()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0)