Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SomeCheckedException (0.06 sec)

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

              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                throw new SomeCheckedException();
              }
            };
        assertThrows(
            SomeCheckedException.class, () -> Callables.threadRenaming(callable, newName).call());
        assertEquals(oldName, Thread.currentThread().getName());
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        AbstractFuture<String> f = new AbstractFuture<String>() {};
        f.set("foo");
        f.addListener(() -> sneakyThrow(new SomeCheckedException()), directExecutor());
      }
    
      private static final class SomeCheckedException extends Exception {}
    
      public void testTrustedGetFailure_completed() {
        SettableFuture<String> future = SettableFuture.create();
        future.set("261");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        AbstractFuture<String> f = new AbstractFuture<String>() {};
        f.set("foo");
        f.addListener(() -> sneakyThrow(new SomeCheckedException()), directExecutor());
      }
    
      private static final class SomeCheckedException extends Exception {}
    
      public void testTrustedGetFailure_completed() {
        SettableFuture<String> future = SettableFuture.create();
        future.set("261");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top