Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 307 for throwing (0.05 sec)

  1. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedType = "OAuth";
            String expectedMessage = "OAuth token is invalid";
    
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

       * computation is complete.
       *
       * <p>Exceptions thrown by a {@code callback} will be propagated up to the executor. Any exception
       * thrown during {@code Executor.execute} (e.g., a {@code RejectedExecutionException} or an
       * exception thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught
       * and logged.
       *
       * <p>Example:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        multimap.put("foo", 3);
        assertTrue(multimap.replaceValues("foo", asList(2, 4)) instanceof RandomAccess);
        assertTrue(multimap.replaceValues("bar", asList(2, 4)) instanceof RandomAccess);
      }
    
      /** Test throwing ConcurrentModificationException when a sublist's ancestor's delegate changes. */
      public void testSublistConcurrentModificationException() {
        ListMultimap<String, Integer> multimap = create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

                    foundTestMethod = true;
                    break;
                }
            }
            assertTrue(foundTestMethod);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Offset limit exceeded: 10000";
    
            try {
                throw new ResultOffsetExceededException(expectedMessage);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(0, stats.loadExceptionCount());
        assertEquals(1, stats.hitCount());
    
        Object value = new Object();
        // callable is not called
        assertSame(key, cache.get(key, throwing(new Exception())));
        stats = cache.stats();
        assertEquals(2, stats.missCount());
        assertEquals(3, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

      private final List<E> expectedElements;
      private final int startIndex;
      private final KnownOrder knownOrder;
    
      /**
       * Meta-exception thrown by {@link AbstractIteratorTester.MultiExceptionListIterator} instead of
       * throwing any particular exception type.
       */
      private abstract static class PermittedMetaException extends RuntimeException {
        static final PermittedMetaException UOE_OR_ISE =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

            } catch (IllegalAccessException e) {
                // Cannot access field due to security restrictions
                return null;
            } catch (Exception e) {
                // Other errors, return null instead of throwing
                return null;
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      Collection<V> unmodifiableEmptyCollection() {
        // These return false, rather than throwing a UOE, on remove calls.
        return (unfiltered instanceof SetMultimap) ? emptySet() : emptyList();
      }
    
      @Override
      public void clear() {
        entries().clear();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * be included, and it's much easier to implement the interpretation that they not be. Finally, a
       * call to {@code shutdown} or {@code shutdownNow} may result in concurrent calls to {@code
       * invokeAll/invokeAny} throwing RejectedExecutionException, although a subset of the tasks may
       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top