Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_threadSafety (0.23 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/NullResponseProcessorTest.java

            // data3 should still have its original values
            assertEquals("https://example.com", data3.getUrl());
            assertEquals(404, data3.getHttpStatusCode());
        }
    
        public void test_threadSafety() {
            // Test that NullResponseProcessor can be used concurrently
            // Since it does nothing, it should be inherently thread-safe
            final NullResponseProcessor processor = new NullResponseProcessor();
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertFalse(fileInfo.matches(1024L, 2000L, 0x20));
    
            // Should not match with different attributes
            assertFalse(fileInfo.matches(1024L, 1000L, 0x10));
        }
    
        @Test
        public void testThreadSafety() throws InterruptedException {
            // Test concurrent updates from multiple threads
            Thread[] threads = new Thread[10];
    
            for (int i = 0; i < threads.length; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top