Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 23 for mock (0.03 seconds)

  1. src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java

                return testContext != null ? testContext : super.createSearchLogContext(params, fessConfig);
            }
        }
    
        // Mock classes for addSearchLog tests
    
        private static class MockSearchRequestParams extends SearchRequestParams {
            @Override
            public String getQuery() {
                return "test query";
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerActionTest.java

        }
    
        private ApiAdminSchedulerAction createActionWithMockService(final ScheduledJob scheduledJob) throws Exception {
            final ApiAdminSchedulerAction action = new ApiAdminSchedulerAction();
    
            // Inject mock ScheduledJobService via reflection
            final ScheduledJobService mockService = new ScheduledJobService() {
                @Override
                public OptionalEntity<ScheduledJob> getScheduledJob(final String id) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 13K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

                    return "";
                }
            });
        }
    
        /**
         * Creates a CoordinatorHelper that captures request bodies sent via CurlHelper.
         * The mock CurlHelper records the last request path and body for assertion.
         */
        private CoordinatorHelper createCapturingHelper(final String testInstanceId, final AtomicReference<String> capturedPath,
    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)
  4. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            try {
                return new org.lastaflute.web.ruts.process.ActionRuntime("test", null, null) {
                    @Override
                    public void registerData(String key, Object value) {
                        // Mock implementation
                    }
                };
            } catch (Exception e) {
                // If ActionRuntime constructor fails, return null and handle in test methods
                return null;
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/app/job/ScriptExecutorJobTest.java

    import org.junit.jupiter.api.TestInfo;
    import org.lastaflute.job.LaJob;
    import org.lastaflute.job.LaScheduledJob;
    import org.lastaflute.job.JobManager;
    import org.lastaflute.job.key.LaJobUnique;
    import org.lastaflute.job.mock.MockJobRuntime;
    
    public class ScriptExecutorJobTest extends UnitFessTestCase {
    
        @Override
        protected boolean isUseOneTimeContainer() {
            return true;
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  6. gradle/libs.versions.toml

    kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }
    mockserver = { module = "org.testcontainers:mockserver", version.ref = "testcontainers" }
    mockserver-client = { module = "org.mock-server:mockserver-client-java-no-dependencies", version.ref = "mockserver-client" }
    native-image-svm = { module = "org.graalvm.nativeimage:svm", version.ref = "graalvm" }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 31 22:01:48 GMT 2026
    - 12K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       *
       * Lock lockA = factory1.newReentrantLock(MyLockOrder.FIRST);
       * Lock lockB = factory1.newReentrantLock(MyLockOrder.FIRST);
       * Lock lockC = factory2.newReentrantLock(MyLockOrder.FIRST);
       *
       * lockA.lock();
       *
       * lockB.lock(); // will throw an IllegalStateException
       * lockC.lock(); // will throw an IllegalStateException
       *
       * lockA.lock(); // reentrant acquisition is okay
       * }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        }
    
        /**
         * Internal method to acquire a distributed lock with retry control.
         *
         * @param operationName the operation name used as the lock document ID.
         * @param data optional data to store with the operation document.
         * @param remainingRetries the number of remaining retry attempts for stale lock cleanup.
         * @return {@code true} if the lock was acquired.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Suppliers.java

          in.defaultReadObject();
          lock = new Object();
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      private static final class NonSerializableMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T> {
        private final Object lock = new Object();
    
        private volatile @Nullable Supplier<T> delegate;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  10. .teamcity/pom.xml

            <!-- For tests only. Must be in compile scope such that the Teamcity generate goal is able to compile the tests -->
            <dependency>
                <groupId>io.mockk</groupId>
                <artifactId>mockk-jvm</artifactId>
                <version>${mockk.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 27 22:03:46 GMT 2026
    - 7.4K bytes
    - Click Count (2)
Back to Top