Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getMaximumBufferSize (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            // Test with smaller maximum buffer size
            when(mockConfig.getMaximumBufferSize()).thenReturn(8192);
            when(mockConfig.getListSize()).thenReturn(16384);
    
            request = new Smb2QueryDirectoryRequest(mockConfig);
            assertNotNull(request);
    
            // Test with smaller list size
            when(mockConfig.getMaximumBufferSize()).thenReturn(16384);
            when(mockConfig.getListSize()).thenReturn(8192);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            when(parent.getLocator()).thenReturn(locator);
            when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\");
            when(tree.getConfig()).thenReturn(config);
            when(config.getMaximumBufferSize()).thenReturn(65535);
            when(config.getListSize()).thenReturn(65535);
    
            // Arrange: initial page with two entries, then one more entry, then no more files
            FileEntry fe1 = mock(FileEntry.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getNativeLanman();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getMaximumBufferSize()
         */
        @Override
        public int getMaximumBufferSize() {
            return this.delegate.getMaximumBufferSize();
        }
    
        /**
         * {@inheritDoc}
         *
         * @deprecated use getReceiveBufferSize instead
         */
        @Deprecated
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Given
            when(mockDelegate.getSendBufferSize()).thenReturn(8192);
            when(mockDelegate.getReceiveBufferSize()).thenReturn(8192);
            when(mockDelegate.getMaximumBufferSize()).thenReturn(65536);
            when(mockDelegate.getTransactionBufferSize()).thenReturn(65024);
            when(mockDelegate.getBufferCacheSize()).thenReturn(16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
            mockContext = mock(CIFSContext.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
            when(mockConfig.getListSize()).thenReturn(65536);
    
            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) i;
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            when(mockHandle.getTree()).thenReturn(mockTree);
            when(mockHandle.getFileId()).thenReturn(new byte[16]);
    
            when(mockTree.getReceiveBufferSize()).thenReturn(0x10000);
            when(mockTree.getMaximumBufferSize()).thenReturn(0x10000);
            when(mockTree.getConfig()).thenReturn(mockConfig);
            when(mockTree.isConnected()).thenReturn(true);
            when(mockTree.getTreeId()).thenReturn(1L);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/context/BaseContextTest.java

            when(mockConfig.getDefaultPassword()).thenReturn(null);
            when(mockConfig.getDefaultDomain()).thenReturn(null);
            when(mockConfig.getBufferCacheSize()).thenReturn(16);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
    
            context = new BaseContext(mockConfig);
        }
    
        @Test
        @DisplayName("Constructor should initialize all components")
        void testConstructorInitialization() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                return transport.getNegotiateResponse().getReceiveBufferSize();
            }
        }
    
        @Override
        public int getMaximumBufferSize() throws SmbException {
            try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            // init(th) behavior inside SmbFileInputStream constructor
            when(tree.isSMB2()).thenReturn(smb2);
            when(tree.getReceiveBufferSize()).thenReturn(4096);
            when(tree.getMaximumBufferSize()).thenReturn(65535);
            when(tree.hasCapability(anyInt())).thenReturn(false);
            return new SmbPipeInputStream(handle, tree);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

        @Mock
        private Configuration mockConfig;
    
        private Trans2FindFirst2 trans2FindFirst2;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65535);
            when(mockConfig.getTransactionBufferSize()).thenReturn(65535);
            when(mockConfig.isUseUnicode()).thenReturn(true);
            when(mockConfig.isForceUnicode()).thenReturn(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top