Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 118 for Logic (0.31 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

     * interaction with {@link SmbFile} instances. The tests make heavy use of
     * Mockito to guarantee that implementation classes do not inadvertently
     * bypass the filter logic.
     */
    public class SmbFileFilterTest {
    
        /**
         * A minimal implementation that accepts every {@link SmbFile}.
         */
        private final SmbFileFilter ALWAYSACTIVE = new SmbFileFilter() {
            @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            assertTrue("OnConnectListener list should be thread-safe",
                    fesenClient.onConnectListenerList instanceof java.util.concurrent.CopyOnWriteArrayList);
        }
    
        /**
         * Test: Retry logic correctly enforces maxRetryCount
         * Verifies that with maxRetryCount=5, the operation is tried exactly 6 times (initial + 5 retries)
         */
        @Test
        public void testRetryLogicMaxRetryCount() throws Exception {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosConstantsTest.java

        /**
         * This test primarily exists to ensure the constants interface can be loaded
         * and to provide a basic check of its values.
         * Since it's an interface with only static final fields, there is no complex logic to test.
         */
        @Test
        void testConstants() {
            // A simple assertion to verify that some of the constants have the expected values.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.1K bytes
    - Viewed (1)
  4. docs/SMB3_IMPLEMENTATION_PLAN.md

    - [ ] Implement lease break notification handling
    - [ ] Modify SmbFile to support lease-based caching
    - [ ] Add lease upgrade/downgrade logic
    - [ ] Implement lease epoch tracking for v2 leases
    
    #### 1.3 Integration Points
    - Modify `Smb2CreateRequest` to include lease contexts
    - Update `SmbFile` caching logic to use leases
    - Add lease break handling in `SmbTransport`
    
    ---
    
    ### Phase 2: Persistent Handles
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Since 34464 is within the 16-bit range but could still be considered excessive for security buffer,
            // let's test the actual validation logic instead
            byte[] buffer2 = createBasicNegotiateResponseBuffer();
            // Set maximum 16-bit value
            SMBUtil.writeInt2(65535, buffer2, 58);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/HMACT64Test.java

            }
        }
    
        // Integration test with actual MD5 to verify HMAC calculation logic
        @Test
        void testHMACT64WithActualMD5() throws NoSuchAlgorithmException {
            // This test uses a real MD5 instance to verify the HMAC calculation logic
            // HMACT64 is a modified HMAC-MD5 where the key is truncated at 64 bytes
            // instead of being hashed when it exceeds the block size.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

     * mainly focuses on serialising a command header that contains a file name.
     * <p>
     * Because most of the logic lives in {@link jcifs.internal.smb1.ServerMessageBlock}
     * the tests create a mock {@link Configuration} and instantiate SmbComQueryInformation
     * directly.  Since the byte‑encoding logic is located in the superclass, the
     * tests verify that the byte buffer created by {@link
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

            verify(file, times(1)).getAttributes();
        }
    
        @Test
        public void testAcceptIgnoresWildcard() throws Exception {
            // Wildcard shouldn't affect accept logic.
            DosFileFilter customFilter = new DosFileFilter("*.txt", SmbFile.ATTR_DIRECTORY);
            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_DIRECTORY);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java

    import java.io.Closeable;
    import java.util.Map;
    
    /**
     * Interface for reading documents and extracting their contents into a map.
     * Implementations of this interface should provide the logic for reading
     * documents and converting them into a key-value structure.
     *
     * <p>This interface extends {@link java.io.Closeable}, so implementations
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

    import java.net.SocketTimeoutException;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * RDMA error handling and recovery logic.
     *
     * This class provides centralized error handling for RDMA operations,
     * including retry logic and fallback mechanisms.
     */
    public class RdmaErrorHandler {
    
        private static final Logger log = LoggerFactory.getLogger(RdmaErrorHandler.class);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top