Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for UncheckedExecutionException (0.28 seconds)

  1. 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);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          assertThat(result.get(i)).isInstanceOf(UncheckedExecutionException.class);
          assertThat((UncheckedExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
        }
    
        // subsequent calls should call the loader again, not get the old exception
        assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked("bar"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            () -> service.runWithTimeout(GOOD_RUNNABLE, NOT_ENOUGH_MS, MILLISECONDS));
      }
    
      public void testRunWithTimeout_badRunnableWithEnoughTime() throws Exception {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> service.runWithTimeout(BAD_RUNNABLE, ENOUGH_MS, MILLISECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(SampleRuntimeException.class);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            () -> service.runWithTimeout(GOOD_RUNNABLE, NOT_ENOUGH_MS, MILLISECONDS));
      }
    
      public void testRunWithTimeout_badRunnableWithEnoughTime() throws Exception {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> service.runWithTimeout(BAD_RUNNABLE, ENOUGH_MS, MILLISECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(SampleRuntimeException.class);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (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);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. 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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  7. 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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          assertThat(result.get(i)).isInstanceOf(UncheckedExecutionException.class);
          assertThat((UncheckedExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
        }
    
        // subsequent calls should call the loader again, not get the old exception
        assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked("bar"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      }
    
      public void testGetCheckedUntimed_executionExceptionUnchecked()
          throws TwoArgConstructorException {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class));
        assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      }
    
      public void testGetCheckedUntimed_executionExceptionUnchecked()
          throws TwoArgConstructorException {
        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class));
        assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
Back to Top