Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CancelPanickingFuture (0.2 sec)

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

        assertThat(logged.get(0).getThrown()).isInstanceOf(MyError.class);
      }
    
      public void testSuccessfulAsList_failureLoggedEvenAfterOutputCancelled() throws Exception {
        ListenableFuture<String> input = new CancelPanickingFuture<>();
        ListenableFuture<List<String>> output = successfulAsList(input);
        output.cancel(false);
    
        List<LogRecord> logged = aggregateFutureLogHandler.getStoredLogRecords();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(logged.get(0).getThrown()).isInstanceOf(MyError.class);
      }
    
      public void testSuccessfulAsList_failureLoggedEvenAfterOutputCancelled() throws Exception {
        ListenableFuture<String> input = new CancelPanickingFuture<>();
        ListenableFuture<List<String>> output = successfulAsList(input);
        output.cancel(false);
    
        List<LogRecord> logged = aggregateFutureLogHandler.getStoredLogRecords();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top