Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for UncheckedExecutionException (0.1 sec)

  1. 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"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  2. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. 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);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. 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"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  8. 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);
        assertThat(listener.isEmpty()).isTrue();
        checkEmpty(map);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. 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);
        assertThat(listener.isEmpty()).isTrue();
        checkEmpty(map);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.primitives.Primitives;
    import com.google.common.reflect.TypeToken;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import com.google.j2objc.annotations.Weak;
    import java.lang.reflect.Method;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top