Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for callCount (0.06 seconds)

  1. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                private int callCount = 0;
    
                @Override
                public void storeSearchLog() {
                    callCount++;
                    throw new RuntimeException("Error " + callCount);
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

        @Test
        public void test_evaluate_concurrency() {
            queryRescorer = new QueryRescorer() {
                private int callCount = 0;
    
                @Override
                public synchronized RescorerBuilder<?> evaluate(Map<String, Object> params) {
                    callCount++;
                    if (callCount % 2 == 0) {
                        return createMockRescorerBuilder();
                    }
                    return null;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

                ThumbnailManager mockThumbnailManager = new ThumbnailManager() {
                    private int callCount = 0;
    
                    @Override
                    public int generate(ExecutorService executorService, boolean cleanup) {
                        // Return 0 to exit the loop
                        if (callCount++ == 0) {
                            return 1;
                        }
                        return 0;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SmbWatchHandleTest.java

            SmbWatchHandle realHandle = new SmbWatchHandle() {
                private int callCount = 0;
    
                @Override
                public List<FileNotifyInformation> watch() throws CIFSException {
                    callCount++;
                    if (callCount == 1) {
                        return Arrays.asList(fileNotifyInfo1);
                    }
                    return Collections.emptyList();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
        assertThat(callCount.get()).isEqualTo(1);
        for (int i = 0; i < count; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

        @Test
        public void test_addShutdownListener_replace() {
            // Test replacing shutdown listener
            AtomicInteger callCount = new AtomicInteger(0);
            ShutdownListener listener1 = new ShutdownListener() {
                @Override
                public void onShutdown() {
                    callCount.incrementAndGet();
                }
            };
    
            ShutdownListener listener2 = new ShutdownListener() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
        assertThat(callCount.get()).isEqualTo(1);
        for (int i = 0; i < count; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            // Test storing various data types
            final AtomicInteger callCount = new AtomicInteger(0);
    
            IndexUpdateCallback callback = new IndexUpdateCallback() {
                @Override
                public void store(DataStoreParams paramMap, Map<String, Object> dataMap) {
                    assertNotNull(dataMap);
                    callCount.incrementAndGet();
                }
    
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

        public void test_getRunningJobCount() {
            // Skip this test - requires complex DB setup
            if (true)
                return;
            // Setup test with mock ScheduledJobBhv
            final AtomicInteger callCount = new AtomicInteger(0);
            final List<ScheduledJob> scheduledJobs = new ArrayList<>();
    
            // Create test scheduled jobs
            ScheduledJob job1 = new ScheduledJob() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            // Calling completeOperation twice must not throw (idempotent release)
            final AtomicInteger callCount = new AtomicInteger(0);
            final CoordinatorHelper helper = new CoordinatorHelper() {
                @Override
                public void completeOperation(final String operationName) {
                    callCount.incrementAndGet();
                    super.completeOperation(operationName);
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
Back to Top