- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for UncheckedExecutionException (0.14 sec)
-
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Mar 07 17:52:19 UTC 2024 - 4.1K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0) -
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.getCause()).isEqualTo(exception); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0) -
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.getCause()).isEqualTo(exception); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4K bytes - Viewed (0) -
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)); assertEquals(CHECKED_EXCEPTION, expected.getCause()); } public void testGetUnchecked_executionExceptionUnchecked() { UncheckedExecutionException expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
public void testGetUnchecked_executionExceptionChecked() { UncheckedExecutionException expected = assertThrows( UncheckedExecutionException.class, () -> getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION)); assertEquals(CHECKED_EXCEPTION, expected.getCause()); } public void testGetUnchecked_executionExceptionUnchecked() { UncheckedExecutionException expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 4.4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 6.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/TimeLimiter.java
* @throws InterruptedException if the current thread was interrupted during execution * @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 22.0 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 18:32:03 UTC 2023 - 15.3K bytes - Viewed (0) -
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.getCause()).isInstanceOf(SampleRuntimeException.class); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.5K bytes - Viewed (0)