Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setThrowException (0.35 sec)

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

            assertEquals(customExpiry, thumbnailManager.getPurgeExpiry());
        }
    
        // Test execute with exception thrown
        public void test_execute_exceptionThrown() {
            thumbnailManager.setThrowException(true);
            thumbnailManager.setExceptionMessage("Purge failed");
    
            String result = purgeThumbnailJob.execute();
    
            assertTrue(result.contains("Purge failed"));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/ExecJobTest.java

                this.executeType = executeType;
            }
    
            public void setExecuteResult(String executeResult) {
                this.executeResult = executeResult;
            }
    
            public void setThrowException(boolean throwException) {
                this.throwException = throwException;
            }
    
            // Expose protected methods for testing
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

        }
    
        // Test executeSuggestCreator with interrupted exception
        public void test_executeSuggestCreator_withInterruptedException() {
            createRequiredDirectories();
            mockProcessHelper.setThrowException(new InterruptedException("Interrupted"));
    
            try {
                suggestJob.executeSuggestCreator();
                // In test environment, exception handling may vary
            } catch (JobProcessingException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

        }
    
        // Test ingest with exception in ingester
        public void test_ingest_withException() {
            final TestIngestFactory factory = (TestIngestFactory) ingestFactory;
            factory.setThrowException(true);
    
            final Map<String, Object> doc = new HashMap<>();
            doc.put("test", "value");
            final AccessResult<String> accessResult = new TestAccessResult();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
Back to top