Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 149 for get_config (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            void testConstructor() {
                Smb2WriteResponse writeResponse = new Smb2WriteResponse(mockConfig);
                assertNotNull(writeResponse);
                // Note: getConfig() is protected, cannot test directly
            }
    
            @Test
            @DisplayName("Should initialize count to zero")
            void testInitialCountValue() {
                assertEquals(0, response.getCount());
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

        private DirectoryLeaseManager directoryLeaseManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() {
            mocks = MockitoAnnotations.openMocks(this);
            when(context.getConfig()).thenReturn(config);
            when(config.isDirectoryNotificationsEnabled()).thenReturn(false); // Disable for unit tests
    
            directoryLeaseManager = new DirectoryLeaseManager(context, baseLeaseManager);
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            Arrays.fill(testFileId, (byte) 0xAB);
    
            // Use lenient stubbing for default configuration values
            lenient().when(mockConfig.getNotifyBufferSize()).thenReturn(8192);
            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
    
            request = new Smb2ChangeNotifyRequest(mockConfig, testFileId);
        }
    
        @Test
        @DisplayName("Should create request with configuration and file ID")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

        @Mock
        private NetbiosAddress mockLocalHost;
    
        @BeforeEach
        void setUp() {
            // Setup mock context with lenient stubbing to avoid UnnecessaryStubbingException
            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            directoryCache.put(directoryPath, cacheEntry);
            leaseToPath.put(leaseKey, directoryPath);
    
            // Start change notification if enabled
            Configuration config = context.getConfig();
            if (isDirectoryNotificationsEnabled(config)) {
                changeNotifier.startWatching(directoryPath, leaseKey);
            }
    
            return leaseKey;
        }
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        private Smb2FlushRequest request;
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
            mockContext = mock(CIFSContext.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // Create a test file ID (16 bytes)
            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) (i + 1);
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            final Map<String, Object> newDataMap = new LinkedHashMap<>();
            for (final Map.Entry<String, Object> e : dataMap.entrySet()) {
                if (fieldConfigs.getConfig(e.getKey()).map(FieldConfigs.Config::isOverwrite).orElse(false)
                        && e.getValue() instanceof final Object[] values && values.length > 0) {
                    newDataMap.put(e.getKey(), values[values.length - 1]);
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            when(mockConfig.getTransactionBufferSize()).thenReturn(65536);
            when(mockConfig.getReceiveBufferSize()).thenReturn(65536);
            when(mockConfig.getSendBufferSize()).thenReturn(65536);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
        @DisplayName("Should create response with configuration")
        void testConstructor() {
            // When
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() throws Exception {
            mocks = MockitoAnnotations.openMocks(this);
    
            when(context.getConfig()).thenReturn(config);
            when(config.isDirectoryNotificationsEnabled()).thenReturn(false);
    
            // Create real lease manager for integration testing
            baseLeaseManager = new LeaseManager(context);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            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);
    
            when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM);
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
Back to Top