Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 399 for sale (0.09 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            @DisplayName("Should return salt correctly")
            void testGetSalt() {
                int[] hashAlgos = { 0x01 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04 };
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                assertArrayEquals(salt, context.getSalt());
                // The implementation returns the same reference, not a defensive copy
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/LogStreamTest.java

            assertNotNull(instance1);
            assertNotNull(instance2);
            // The second setInstance replaces the first, so they should not be the same
            assertNotSame(instance1, instance2);
            // Getting instance again should return the same as instance2
            assertSame(instance2, LogStream.getInstance());
        }
    
        @Test
        void testLogStreamInheritsFromPrintStream() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

        }
    
        /**
         * Test: Thread-safe listener invocation during connection
         * Verifies that listeners can be added while connect() is executing
         */
        @Test
        public void testConcurrentListenerInvocation() throws Exception {
            // This test verifies CopyOnWriteArrayList allows safe iteration
            assertTrue("OnConnectListener list should be thread-safe",
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. CLAUDE.md

    Execution context and configuration.
    
    **Important Fields**:
    ```java
    String sessionId                // Format: yyyyMMddHHmmssSSS
    volatile CrawlerStatus status   // DONE, RUNNING
    AtomicLong accessCount          // Thread-safe counter
    int numOfThread = 10            // Crawler threads
    int maxDepth = -1               // Max depth (-1 = unlimited)
    long maxAccessCount = 0         // Max URLs (0 = unlimited)
    ```
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java

            startLatch.countDown();
    
            // Wait for all threads to complete
            assertTrue("Threads did not complete in time", doneLatch.await(5, TimeUnit.SECONDS));
    
            // All threads should fail with the same IOException (project ID is blank)
            // But importantly, there should be no race condition errors
            assertEquals(threadCount, failureCount.get());
            assertEquals(0, successCount.get());
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/FileUtilTest.java

        }
    
        /**
         * Test isPathSafe with safe path
         *
         * @throws Exception
         */
        @Test
        public void testIsPathSafe_SafePath() throws Exception {
            final Path baseDir = tempFolder.getRoot().toPath();
            final Path safePath = baseDir.resolve("subdir/file.txt");
    
            assertTrue("Safe path should be allowed", FileUtil.isPathSafe(safePath, baseDir));
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            public void clearRules() {
                rules.clear();
            }
    
            public List<Rule> getRules() {
                return new ArrayList<>(rules);
            }
        }
    
        /**
         * Thread-safe implementation of RuleManager
         */
        public static class ThreadSafeRuleManager implements RuleManager {
            private final List<Rule> rules = new CopyOnWriteArrayList<>();
    
            @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

        protected static final int DEFAULT_BUF_SIZE = 4096; // 4k
    
        /** Max Buffer Size */
        protected static final int MAX_BUF_SIZE = 10 * 1024 * 1024; // 10m
    
        /**
         * Validates that a given path is safe and does not attempt path traversal attacks.
         * <p>
         * This method checks if the resolved absolute path starts with the allowed base directory,
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Simulate invalidation
            assertFalse(handle.isOpen(), "Becomes not open when underlying handle invalid");
    
            // After close, report stale
            handle.close();
            assertTrue(handle.isStale(), "Closed handle reports stale");
        }
    
        @Test
        @DisplayName("getSessionKey propagates CIFSException from session acquisition")
        void getSessionKey_exception_propagates() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            // Mix of same and different hosts
            for (int i = 0; i < numTasks; i++) {
                final int index = i;
                tasks.add(new Callable<Integer>() {
                    public Integer call() throws Exception {
                        final UrlQueue q = new UrlQueueImpl();
                        // Use modulo to create multiple accesses to same hosts
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top