Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for throwing (0.07 sec)

  1. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause);
    
        ClassCastException expected =
            assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ThrowablesTest.java

        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause);
    
        ClassCastException expected =
            assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals(middleCause, topException.getCause());
            assertEquals(rootCause, topException.getCause().getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
                throw new ContainerNotAvailableException(componentName);
            } catch (ContainerNotAvailableException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        shouldFail(new FailOneArgDoesntThrowNpe());
      }
    
      private static class FailOneArgThrowsWrongType extends PassObject {
        @Override
        public void oneArg(String s) {
          doThrow(s); // Fail: throwing non-NPE exception for null s
        }
      }
    
      public void testFailOneArgThrowsWrongType() {
        shouldFail(new FailOneArgThrowsWrongType());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. android/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
    - 20.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      }
    
      /**
       * Inserts the specified element at the tail of this queue if it is possible to do so immediately
       * without exceeding the queue's capacity, returning {@code true} upon success and throwing an
       * {@code IllegalStateException} if this queue is full.
       *
       * @param e the element to add
       * @return {@code true} (as specified by {@link Collection#add})
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top