- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 174 for setConfig (0.07 sec)
-
src/test/java/jcifs/SmbTreeHandleTest.java
@Mock private Configuration mockConfig; /** * Test for getConfig() method. * Verifies that the method returns the expected Configuration object. */ @Test void testGetConfig() { when(smbTreeHandle.getConfig()).thenReturn(mockConfig); Configuration config = smbTreeHandle.getConfig(); assertNotNull(config, "Configuration should not be null");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
log.debug("Ignoring invalid initial token", e1); } return new SpnegoContext(tc.getConfig(), setupTargetName(tc, host, new NtlmContext(tc, this, doSigning))); } private static SSPContext setupTargetName(CIFSContext tc, String host, NtlmContext ntlmContext) { if (host != null && tc.getConfig().isSendNTLMTargetName()) { ntlmContext.setTargetName(String.format("cifs/%s", host)); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
} if (this.useNTSmbs) { this.reqx = new SmbComWriteAndX(th.getConfig()); this.rspx = new SmbComWriteAndXResponse(th.getConfig()); } else { this.req = new SmbComWrite(th.getConfig()); this.rsp = new SmbComWriteResponse(th.getConfig()); } } /** * Ensures that the file descriptor is openend *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
assertEquals(-1L, trace.getTreeId()); } @Test @DisplayName("getConfig(): delegates to context") void getConfig_delegatesToContext() { // Arrange CIFSContext ctx = mock(CIFSContext.class); Configuration cfg = mock(Configuration.class); when(ctx.getConfig()).thenReturn(cfg); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
lenient().when(tree.isConnected()).thenReturn(true); // CIFS context returns same config to build responses during initResponse lenient().when(cifsContext.getConfig()).thenReturn(config); } @AfterEach void teardown() { // No global state to reset beyond mocks } static Stream<String> wildcardProvider() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// Given Configuration mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); // When Configuration config = mockContext.getConfig(); // Then assertEquals(mockConfig, config); verify(mockContext).getConfig(); } @Test @DisplayName("Should get NameServiceClient")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
} final TransPeekNamedPipe req = new TransPeekNamedPipe(th.getConfig(), this.handle.getUncPath(), fd.getFid()); final TransPeekNamedPipeResponse resp = new TransPeekNamedPipeResponse(th.getConfig()); th.send(req, resp, RequestParam.NO_RETRY); if (resp.getStatus() == TransPeekNamedPipeResponse.STATUS_DISCONNECTEDRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
} static SmbTreeConnection create(final CIFSContext c) { if (c.getConfig().isTraceResourceUsage()) { return new SmbTreeConnectionTrace(c); } return new SmbTreeConnection(c); } static SmbTreeConnection create(final SmbTreeConnection c) { if (c.ctx.getConfig().isTraceResourceUsage()) { return new SmbTreeConnectionTrace(c); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
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 listing return smbFile.listFiles();Registered: 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/SmbPipeInputStreamTest.java
// Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(config); when(config.getTransactionBufferSize()).thenReturn(65535); Smb2IoctlResponse ioResp = mock(Smb2IoctlResponse.class); SrvPipePeekResponse peek = mock(SrvPipePeekResponse.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)