- Sort Score
- Result 10 results
- Languages All
Results 41 - 46 of 46 for hasCauseThat (0.12 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
latch.countDown(); ExecutionException expected = assertThrows(ExecutionException.class, () -> first.get(10, SECONDS)); assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class); } public void testToString() { final Runnable[] currentTask = new Runnable[1]; final Executor delegate = new Executor() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
latch.countDown(); ExecutionException expected = assertThrows(ExecutionException.class, () -> first.get(10, SECONDS)); assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class); } public void testToString() { final Runnable[] currentTask = new Runnable[1]; final Executor delegate = new Executor() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertThat(e.getCause()).isSameInstanceAs(expectedException); } try { getDoneFromTimeoutOverload(future); fail(); } catch (ExecutionException e) { assertThat(e).hasCauseThat().isSameInstanceAs(expectedException); } } private static void assertCancelled(AbstractFuture<Integer> future, boolean expectWasInterrupted)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
encoding.decode(cannotDecode); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { if (expectedMessage != null) { assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); } } } }, DECODE_CHECKED { @Override void assertFailsToDecode(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 24.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testRecursiveWildcardSubtypeBug() throws Exception { Exception e = assertThrows( Exception.class, () -> new RecursiveTypeBoundBugExample<>().testAllDeclarations()); assertThat(e).hasCauseThat().isInstanceOf(AssertionError.class); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public void testSubtypeOfInnerClass_nonStaticAnonymousClass() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
encoding.decode(cannotDecode); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { if (expectedMessage != null) { assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); } } } }, DECODE_CHECKED { @Override void assertFailsToDecode(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 24.6K bytes - Viewed (0)