Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 772 for safety (0.05 seconds)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        putEdge(1, 2);
        putEdge(3, 1);
      }
    
      // Element Mutation
    
      @Test
      public void putEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
    
        assertThat(graphAsMutableGraph.putEdge(N1, N2)).isTrue();
      }
    
      @Test
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

                }
            };
    
            FessTimeResourceProvider emptyProvider = new FessTimeResourceProvider(emptyConfig);
            assertNotNull(emptyProvider);
        }
    
        // Test thread safety of provider creation
        @Test
        public void test_threadSafetyProviderCreation() throws InterruptedException {
            final int threadCount = 10;
            final Thread[] threads = new Thread[threadCount];
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                    Map<String, String> scriptMap, Map<String, Object> defaultDataMap) {
                // Test implementation
            }
        }
    
        // ========== Thread Safety Tests for getDataStoreNames() ==========
    
        /**
         * Test concurrent getDataStoreNames calls to verify synchronized method works correctly.
         * Multiple threads call getDataStoreNames() simultaneously.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            // Should keep existing doc_id
            assertEquals("existing-doc-id", dataMap.get("doc_id"));
        }
    
        @Test
        public void test_concurrentStore() throws Exception {
            // Test thread safety
            final int threadCount = 10;
            final int docsPerThread = 10;
            final List<Thread> threads = new ArrayList<>();
            final AtomicInteger successCount = new AtomicInteger(0);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      // Element Mutation
    
      @Test
      public void addEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java

            boolean result = indexUpdateCallback.isUrlCrawlable(paramMap, null);
    
            assertTrue(result);
        }
    
        // ========== Thread Safety Tests ==========
    
        /**
         * Test that deleteUrlList access is thread-safe with synchronized blocks.
         * This test verifies the ArrayList implementation works correctly when
         * all access is properly synchronized via indexUpdateCallback lock.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      // Element Mutation
    
      @Test
      public void addEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 19K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      // Element Mutation
    
      @Test
      public void addEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        }
      }
    
      /**
       * Verify thread safety by using a collection whose size() may be inconsistent with the actual
       * number of elements and whose elements may change over time.
       *
       * <p>This test might fail in GWT because the GWT emulations might count on the input collection
       * not to change during the copy. It is safe to do so in GWT because javascript is
       * single-threaded.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            int offsetSize = 4;
            int remarkSize = remark.length() + 1;
            int totalSize = shareNameSize + typeSize + offsetSize + remarkSize;
    
            byte[] buffer = new byte[totalSize + 100]; // Extra space for safety
            int bufferIndex = 0;
            int start = 0;
    
            // Set converter value first
            setConverter(response, 0);
    
            // Set number of entries
            setNumEntries(response, 1);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.2K bytes
    - Click Count (0)
Back to Top