Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 178 for _getConfig (0.11 sec)

  1. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java

        @Override
        protected Smb2QueryDirectoryResponse createResponse(final CIFSContext tc,
                final ServerMessageBlock2Request<Smb2QueryDirectoryResponse> req) {
            return new Smb2QueryDirectoryResponse(tc.getConfig(), this.fileInformationClass);
        }
    
        /**
         * {@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
    - 7.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

            this.fileId = fileId;
        }
    
        @Override
        protected Smb2WriteResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2WriteResponse> req) {
            return new Smb2WriteResponse(tc.getConfig());
        }
    
        /**
         * Sets the data to be written to the file.
         *
         * @param data the data buffer to write
         * @param offset the offset in the data buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

        private CIFSContext mockContext;
    
        private byte[] testFileId;
        private Smb2WriteRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            testFileId = new byte[16];
            new SecureRandom().nextBytes(testFileId);
            request = new Smb2WriteRequest(mockConfig, testFileId);
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                Thread t = new Thread(r, "LeaseManager-Cleanup");
                t.setDaemon(true);
                return t;
            });
    
            // Schedule periodic cleanup
            long cleanupInterval = context.getConfig().getLeaseTimeout();
            if (cleanupInterval <= 0) {
                cleanupInterval = DEFAULT_LEASE_CLEANUP_INTERVAL;
            }
    
            final long finalCleanupInterval = cleanupInterval;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

        void setUp() throws Exception {
            mockService = new MockWitnessService();
            mockService.start();
    
            // Setup mock configuration with lenient stubbing
            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockConfig.isUseWitness()).thenReturn(true);
            lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

        void testConstructor() {
            // Given & When
            Smb2FlushResponse flushResponse = new Smb2FlushResponse(mockConfig);
    
            // Then
            assertNotNull(flushResponse);
            // Cannot test getConfig() as it's protected
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should return 0 for write bytes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

        private byte[] testFileId;
        private Smb2Lock[] testLocks;
        private Smb2LockRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            testFileId = new byte[16];
            new SecureRandom().nextBytes(testFileId);
    
            testLocks = new Smb2Lock[] { new Smb2Lock(0L, 100L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK) };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                } else {
                    // Create new handle info if not found
                    HandleInfo newInfo =
                            new HandleInfo(path, guid, fileId, HandleType.PERSISTENT, context.getConfig().getPersistentHandleTimeout(), null);
                    handles.put(path, newInfo);
                    guidToHandle.put(guid, newInfo);
                    persistHandle(newInfo);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            // Common happy-path defaults
            // Use lenient() to avoid strict stubbing issues with Mockito
            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getConfig()).thenReturn(config);
            lenient().when(config.getListCount()).thenReturn(10);
            lenient().when(config.getListSize()).thenReturn(4096);
    
            lenient().when(parent.getLocator()).thenReturn(locator);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                CIFSContext ctx = mock(CIFSContext.class);
                Configuration cfg = mock(Configuration.class);
                when(cfg.isIgnoreCopyToException()).thenReturn(ignore);
                when(ctx.getConfig()).thenReturn(cfg);
                return ctx;
            }
    
            @Test
            @DisplayName("copyFile wraps and throws when ignoreCopyToException=false")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top