Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for throwException (0.12 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/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)
  3. 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)
  4. 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)
  5. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

             * @return Integer
             */
            public Integer echo(final Integer arg) {
                return arg;
            }
    
            /**
             *
             */
            public void throwException() {
                throw new IllegalStateException("hoge");
            }
        }
    
        /**
         *
         */
        public class MyBean2 {
            /**
             *
             */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CloserTest.java

        try {
          try {
            throw thrownException;
          } catch (Throwable e) {
            throw closer.rethrow(thrownException, IOException.class);
          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CloserTest.java

        try {
          try {
            throw thrownException;
          } catch (Throwable e) {
            throw closer.rethrow(thrownException, IOException.class);
          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. 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)
  9. 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