Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for mock (0.01 sec)

  1. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

        public void test_findBusinessLocale_withValidLocale() {
            // Setup mock config
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                @Override
                public String getQueryBrowserLangParameterName() {
                    return "lang";
                }
            };
            ComponentUtil.setFessConfig(mockConfig);
    
            // Setup mock request manager
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

        public void test_execute_concurrentCalls() {
            // Setup mock SearchLogHelper for concurrent testing
            final Object lock = new Object();
            final int[] callCount = { 0 };
    
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    synchronized (lock) {
                        callCount[0]++;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        assertFalse(testExecutor.awaitTermination(10, MILLISECONDS));
        mock.assertLastMethodCalled("awaitTermination");
        assertFalse(testExecutor.isTerminated());
        mock.assertLastMethodCalled("isTerminated");
        assertFalse(testExecutor.isShutdown());
        mock.assertLastMethodCalled("isShutdown");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java

                }
            };
    
            NotificationHelper notificationHelper = new NotificationHelper() {
                // Mock send method
                public void send(final Object postcard) {
                    // Mock implementation
                }
            };
    
            // Mock Postbox - no need to mock, the framework will handle it
    
            // Register components
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
      public void testGetExitingExecutorService_executorDelegatesToOriginal() {
        TestApplication application = new TestApplication();
        ThreadPoolExecutor executor = mock(ThreadPoolExecutor.class);
        ThreadFactory threadFactory = mock(ThreadFactory.class);
        when(executor.getThreadFactory()).thenReturn(threadFactory);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

                protected int getRunningJobCount() {
                    return 0;
                }
    
                @Override
                protected void executeCrawler() {
                    // Mock execution
                }
            };
    
            // Mock ComponentUtil
            ComponentUtil.setFessConfig(new TestFessConfig() {
                @Override
                public Integer getJobMaxCrawlerProcessesAsInteger() {
                    return 5;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            updateLabelJob = new UpdateLabelJob();
    
            // Setup mock components
            setupMockComponents();
        }
    
        private void setupMockComponents() {
            // Mock SearchEngineClient
            SearchEngineClient mockSearchEngineClient = new SearchEngineClient() {
                @Override
                public long updateByQuery(String index,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/FunnelsTest.java

        PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
        Funnels.byteArrayFunnel().funnel(new byte[] {4, 3, 2, 1}, primitiveSink);
        verify(primitiveSink).putBytes(new byte[] {4, 3, 2, 1});
      }
    
      public void testForBytes_null() {
        assertNullsThrowException(Funnels.byteArrayFunnel());
      }
    
      public void testForStrings() {
        PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

          };
    
      public void testSchedule() {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
    
        Future<?> unused1 = testExecutor.schedule(DO_NOTHING, 10, MINUTES);
        mock.assertLastMethodCalled("scheduleRunnable", 10, MINUTES);
    
        Future<?> unused2 = testExecutor.schedule(callable(DO_NOTHING), 5, SECONDS);
        mock.assertLastMethodCalled("scheduleCallable", 5, SECONDS);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        // 'swallowException' when the mock does not throw an exception.
        setupCloseable(false);
        doClose(mockCloseable, false, false);
    
        setupCloseable(false);
        doClose(mockCloseable, true, false);
      }
    
      public void testClose_closeableWithEatenException() throws IOException {
        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception.
        setupCloseable(true);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top