Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for throwException (1.5 sec)

  1. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            private boolean throwException = false;
    
            @Override
            public Ingester[] getIngesters() {
                return new Ingester[] { new TestIngester(throwException) };
            }
    
            public void setThrowException(boolean throwException) {
                this.throwException = throwException;
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/PurgeThumbnailJobTest.java

            }
    
            public void setPurgeCallCount(long count) {
                this.purgeCallCount = count;
            }
    
            public void setThrowException(boolean throwException) {
                this.throwException = throwException;
            }
    
            public void setExceptionMessage(String message) {
                this.exceptionMessage = message;
            }
    
            public long getPurgeExpiry() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            int exitValue = 0;
            String processOutput = "Test output";
            RuntimeException throwException = null;
    
            @Override
            public JobProcess startProcess(String sessionId, List<String> cmdList, java.util.function.Consumer<ProcessBuilder> pbConsumer) {
                if (throwException != null) {
                    throw throwException;
                }
    
                startProcessCalled = true;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            int exitValue = 0;
            String processOutput = "Test output";
            RuntimeException throwException = null;
    
            @Override
            public JobProcess startProcess(String sessionId, List<String> cmdList, java.util.function.Consumer<ProcessBuilder> pbConsumer) {
                if (throwException != null) {
                    throw throwException;
                }
    
                startProcessCalled = true;
    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. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            }
    
            public void setExecuteResult(String executeResult) {
                this.executeResult = executeResult;
            }
    
            public void setThrowException(boolean throwException) {
                this.throwException = throwException;
            }
    
            // Expose protected methods for testing
            public void testAddSystemProperty(List<String> cmdList, String name, String defaultValue, String appendValue) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

            queryRescorer = new QueryRescorer() {
                @Override
                public RescorerBuilder<?> evaluate(Map<String, Object> params) {
                    if (params != null && params.containsKey("throwException")) {
                        throw new RuntimeException("Test exception");
                    }
                    return createMockRescorerBuilder();
                }
            };
    
            // Test normal case
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbSessionTest.java

                doThrow(testException).when(mockSession).close();
    
                Exception thrownException = assertThrows(Exception.class, mockSession::close, "close() should propagate exceptions");
                assertEquals("Test close exception", thrownException.getMessage());
            }
        }
    
        @Nested
        @DisplayName("Configuration Access Tests")
        class ConfigurationAccessTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            when(mockDelegate.getResponseTimeout()).thenThrow(testException);
    
            // When & Then
            RuntimeException thrownException = assertThrows(RuntimeException.class, () -> {
                delegatingConfig.getResponseTimeout();
            });
    
            assertSame(testException, thrownException, "Should propagate exception from delegate");
            verify(mockDelegate).getResponseTimeout();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top