Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 1,356 for throwIf (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            fileTypeHelper = new FileTypeHelper();
        }
    
        @Test
        public void test_init() {
            try {
                fileTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

      }
    
      public void testNoForwardingOfDefaultMethod() throws Exception {
        ExecutorService delegate =
            new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, SECONDS, new SynchronousQueue<>()) {
              @Override
              public void close() {
                throw new AssertionError(
                    "ForwardingExecutorService should have used the default method"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/service/UserService.java

                        }
                        throw new FessUserNotFoundException(username);
                    });
                } else {
                    logger.warn("Password change not applied by authentication manager: username={}", username);
                }
            } catch (final FessUserNotFoundException e) {
                throw e;
            } catch (final Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:22:27 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java

        @Override
        public String apply(Integer input) {
          if (input.intValue() == VALID_INPUT_DATA) {
            return RESULT_DATA;
          } else {
            throw WRAPPED_EXCEPTION;
          }
        }
      }
    
      public void testFutureGetThrowsFunctionException() throws Exception {
        inputFuture.set(EXCEPTION_DATA);
        listener.assertException(WRAPPED_EXCEPTION);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

     * possibly run in another thread.
     *
     * <p>{@code UncheckedExecutionException} is intended as an alternative to {@code
     * ExecutionException} when the exception thrown by a task is an unchecked exception. However, it
     * may also wrap a checked exception in some cases.
     *
     * <p>When wrapping an {@code Error} from another thread, prefer {@link ExecutionError}. When
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/hash/FunnelsTest.java

            };
        try {
          funnel.funnel(null, primitiveSink);
          fail();
        } catch (NullPointerException ok) {
        }
      }
    
      public void testAsOutputStream() throws Exception {
        PrimitiveSink sink = mock(PrimitiveSink.class);
        OutputStream out = Funnels.asOutputStream(sink);
        byte[] bytes = {1, 2, 3, 4};
        out.write(255);
        out.write(bytes);
        out.write(bytes, 1, 2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/CompactHashMap.java

        }
      }
    
      @SuppressWarnings("unchecked")
      @J2ktIncompatible
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        int elementCount = stream.readInt();
        if (elementCount < 0) {
          throw new InvalidObjectException("Invalid size: " + elementCount);
        }
        init(elementCount);
        for (int i = 0; i < elementCount; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Queues.java

       * @return the number of elements transferred
       * @throws InterruptedException if interrupted while waiting
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      @CanIgnoreReturnValue
      @J2ktIncompatible
      @GwtIncompatible // BlockingQueue
      public static <E> int drain(
          BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout)
          throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 18K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/PythonJobTest.java

        private TestProcessHelper testProcessHelper;
        private TestFessConfig testFessConfig;
        private TestServletContext testServletContext;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            pythonJob = new PythonJob();
    
            // Setup test components
            testProcessHelper = new TestProcessHelper();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/query/PhraseQueryCommandTest.java

        public void test_execute_withNonPhraseQuery() {
            // Test with non-phrase query - should throw InvalidQueryException
            Query termQuery = new TermQuery(new Term("field", "value"));
            QueryContext context = new QueryContext("test", false);
    
            try {
                queryCommand.execute(context, termQuery, 1.0f);
                fail("Should throw InvalidQueryException for non-phrase query");
            } catch (InvalidQueryException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.3K bytes
    - Click Count (0)
Back to Top