Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for UncheckedExecutionException (0.12 sec)

  1. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

       *     constructor that omits the cause.
       */
      @Deprecated
      protected UncheckedExecutionException() {}
    
      /**
       * Creates a new instance with the given detail message and no cause.
       *
       * @deprecated Prefer {@linkplain UncheckedExecutionException(String, Throwable)} a constructor
       *     that accepts a cause: Users of this class typically expect for instances to have a non-null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

      }
    
      public void testCallWithTimeout_wrapsUncheckedException() throws Exception {
        Exception exception = new RuntimeException("test");
        UncheckedExecutionException e =
            assertThrows(
                UncheckedExecutionException.class,
                () -> timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, MILLISECONDS));
        assertThat(e).hasCauseThat().isEqualTo(exception);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

              }
    
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return valueRef.get();
              }
            };
    
        UncheckedExecutionException expected =
            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            CacheBuilder.newBuilder().build(exceptionLoader(ee));
    
        UncheckedExecutionException caughtUee =
            assertThrows(UncheckedExecutionException.class, () -> cacheUnchecked.get(new Object()));
        assertThat(caughtUee).hasCauseThat().isSameInstanceAs(uee);
    
        caughtUee =
            assertThrows(
                UncheckedExecutionException.class, () -> cacheUnchecked.getUnchecked(new Object()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

      }
    
      public void testCallWithTimeout_wrapsUncheckedException() throws Exception {
        Exception exception = new RuntimeException("test");
        UncheckedExecutionException e =
            assertThrows(
                UncheckedExecutionException.class,
                () -> timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, MILLISECONDS));
        assertThat(e).hasCauseThat().isEqualTo(exception);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(exceptionLoader(e));
    
        UncheckedExecutionException uee =
            assertThrows(UncheckedExecutionException.class, () -> map.getUnchecked(new Object()));
        assertThat(uee).hasCauseThat().isSameInstanceAs(e);
        assertTrue(listener.isEmpty());
        checkEmpty(map);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/NullCacheTest.java

            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(exceptionLoader(e));
    
        UncheckedExecutionException uee =
            assertThrows(UncheckedExecutionException.class, () -> map.getUnchecked(new Object()));
        assertThat(uee).hasCauseThat().isSameInstanceAs(e);
        assertTrue(listener.isEmpty());
        checkEmpty(map);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

      public void testGetUnchecked_executionExceptionChecked() {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class, () -> getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION));
        assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION);
      }
    
      public void testGetUnchecked_executionExceptionUnchecked() {
        UncheckedExecutionException expected =
            assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

      public void testGetUnchecked_executionExceptionChecked() {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class, () -> getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION));
        assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION);
      }
    
      public void testGetUnchecked_executionExceptionUnchecked() {
        UncheckedExecutionException expected =
            assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(TimeoutException.class, e -> e instanceof TimeoutException)
              .put(UncheckedExecutionException.class, e -> e instanceof UncheckedExecutionException)
              .put(UnsupportedCharsetException.class, e -> e instanceof UnsupportedCharsetException)
              .put(UnsupportedOperationException.class, e -> e instanceof UnsupportedOperationException)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top