Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for hasCauseThat (0.23 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        ListenableFuture<String> future = asyncCallable.call();
        try {
          future.get();
          fail("Expected exception to be thrown");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expected);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming() throws Exception {
        String oldName = Thread.currentThread().getName();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        ExecutionException ee2 = getExpectingExecutionException(future);
    
        // Ensure we get a unique execution exception on each get
        assertNotSame(ee1, ee2);
    
        assertThat(ee1).hasCauseThat().isSameInstanceAs(failure);
        assertThat(ee2).hasCauseThat().isSameInstanceAs(failure);
    
        checkStackTrace(ee1);
        checkStackTrace(ee2);
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        Exception failureCause = new Exception();
        try {
          getDone(immediateFailedFuture(failureCause));
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isEqualTo(failureCause);
        }
      }
    
      public void testCancelled() throws ExecutionException {
        try {
          getDone(immediateCancelledFuture());
          fail();
        } catch (CancellationException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        ExecutionException ee2 = getExpectingExecutionException(future);
    
        // Ensure we get a unique execution exception on each get
        assertNotSame(ee1, ee2);
    
        assertThat(ee1).hasCauseThat().isSameInstanceAs(failure);
        assertThat(ee2).hasCauseThat().isSameInstanceAs(failure);
    
        checkStackTrace(ee1);
        checkStackTrace(ee2);
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        Exception failureCause = new Exception();
        try {
          getDone(immediateFailedFuture(failureCause));
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isEqualTo(failureCause);
        }
      }
    
      public void testCancelled() throws ExecutionException {
        try {
          getDone(immediateCancelledFuture());
          fail();
        } catch (CancellationException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

          FluentFuture<?> f =
              FluentFuture.from(SettableFuture.create()).withTimeout(0, SECONDS, executor);
          ExecutionException e = assertThrows(ExecutionException.class, () -> f.get());
          assertThat(e).hasCauseThat().isInstanceOf(TimeoutException.class);
        } finally {
          executor.shutdown();
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        ListenableFuture<String> future = asyncCallable.call();
        try {
          future.get();
          fail("Expected exception to be thrown");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expected);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming() throws Exception {
        String oldName = Thread.currentThread().getName();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

          FluentFuture<?> f =
              FluentFuture.from(SettableFuture.create()).withTimeout(0, SECONDS, executor);
          ExecutionException e = assertThrows(ExecutionException.class, () -> f.get());
          assertThat(e).hasCauseThat().isInstanceOf(TimeoutException.class);
        } finally {
          executor.shutdown();
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
        try {
          getDone(task);
          fail();
        } catch (ExecutionException executionException) {
          assertThat(executionException).hasCauseThat().isEqualTo(e);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        final AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
        try {
          getDone(task);
          fail();
        } catch (ExecutionException executionException) {
          assertThat(executionException).hasCauseThat().isEqualTo(e);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        final AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top