Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for assertThatFutureBecomesCancelled (0.43 seconds)

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

          fail("Expected future to fail: " + future);
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        }
      }
    
      static void assertThatFutureBecomesCancelled(Future<?> future) throws ExecutionException {
        try {
          getUninterruptibly(future);
          fail("Expected future to be canceled: " + future);
        } catch (CancellationException expected) {
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

          fail("Expected future to fail: " + future);
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        }
      }
    
      static void assertThatFutureBecomesCancelled(Future<?> future) throws ExecutionException {
        try {
          getUninterruptibly(future);
          fail("Expected future to be canceled: " + future);
        } catch (CancellationException expected) {
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
Back to Top