- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 160 for getCause (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
assertTrue(future.isDone()); assertThat(tryInternalFastPathGetFailure(future)).isNull(); CancellationException e = assertThrows(CancellationException.class, future::get); assertThat(e.getCause()).isNotNull(); } public void testCancel_notDoneInterrupt() throws Exception { Future<?> future = newFutureInstance(); assertTrue(future.cancel(true)); assertTrue(future.isCancelled());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
assertTrue(future.isDone()); assertThat(tryInternalFastPathGetFailure(future)).isNull(); CancellationException e = assertThrows(CancellationException.class, future::get); assertThat(e.getCause()).isNotNull(); } public void testCancel_notDoneInterrupt() throws Exception { Future<?> future = newFutureInstance(); assertTrue(future.cancel(true)); assertTrue(future.isCancelled());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(future)); assertThat(expected.getCause()).isEqualTo(exception); expected = assertThrows(ExecutionException.class, () -> getDoneFromTimeoutOverload(future)); assertThat(expected.getCause()).isEqualTo(exception); } public void testImmediateFailedFuture_cancellationException() throws Exception {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(future)); assertThat(expected.getCause()).isEqualTo(exception); expected = assertThrows(ExecutionException.class, () -> getDoneFromTimeoutOverload(future)); assertThat(expected.getCause()).isEqualTo(exception); } public void testImmediateFailedFuture_cancellationException() throws Exception {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/logging/LoggingExecutionListener.java
if (status != null) { halted = status.isHalted(); } else { // assume sensible default Throwable t = projectExecutionEvent.getCause(); halted = (t instanceof RuntimeException || !(t instanceof Exception)) || !MavenExecutionRequest.REACTOR_FAIL_NEVER.equals(session.getReactorFailureBehavior())
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 6.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java
assertTrue("Exception should be system-related", t instanceof RuntimeException || t instanceof AssertionError || (t.getCause() != null && t.getCause() instanceof RuntimeException)); } } @Test public void test_private_methods_exist() throws Exception { Method[] methods = SystemMonitorTarget.class.getDeclaredMethods();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.2K bytes - Click Count (0) -
src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java
System.out.println(e.getMessage()); assertThat(e.getPropertyName(), is("hoge")); assertThat(e.getValue(), is((Object) "xxx")); assertThat(e.getCause().getMessage(), is("cause")); }
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
CIFSException thrown = assertThrows(CIFSException.class, () -> { cifsContextWrapper.get(malformedUrl); }); assertTrue(thrown.getMessage().contains("Invalid URL")); assertTrue(thrown.getCause() instanceof MalformedURLException); } @Test void testGetPipe() throws CIFSException, MalformedURLException { // Test getPipe(String url, int pipeType) method
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
// Test default constructor DictionaryExpiredException exception = new DictionaryExpiredException(); assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause()); } @Test public void test_instanceOf() { // Test that exception is instance of RuntimeException DictionaryExpiredException exception = new DictionaryExpiredException();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
fail("Expected CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("Failed to access the content")); assertSame(exception, e.getCause()); } } @Test public void testGetContentAsStreamWithCache() throws IOException { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes();
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0)