Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for throwException (0.42 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      protected volatile boolean throwException = false;
    
      protected final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              new Callable<Integer>() {
                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      protected volatile boolean throwException = false;
    
      protected final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              new Callable<Integer>() {
                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top