Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testSetException (0.14 sec)

  1. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java

            problem = new DefaultProblem(null, null, null, -1, Integer.MIN_VALUE, null);
            assertEquals(Integer.MIN_VALUE, problem.getColumnNumber());
        }
    
        @Test
        void testGetException() {
            DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null);
            assertNull(problem.getException());
    
            Exception e = new Exception();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top