Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testSetException (0.05 sec)

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

        // Check that the future has been set properly.
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertEquals(42, (int) future.get());
      }
    
      public void testSetException() throws Exception {
        SettableFuture<Object> future = SettableFuture.create();
        Exception e = new Exception("foobarbaz");
        assertTrue(future.setException(e));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top