Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for SomeCheckedException (0.22 seconds)

  1. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        throwIfInstanceOf(new SomeOtherCheckedException(), SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_checkedSame() {
        assertThrows(
            SomeCheckedException.class,
            () -> throwIfInstanceOf(new SomeCheckedException(), SomeCheckedException.class));
      }
    
      @GwtIncompatible // throwIfInstanceOf
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/ThrowablesTest.java

        throwIfInstanceOf(new SomeOtherCheckedException(), SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_checkedSame() {
        assertThrows(
            SomeCheckedException.class,
            () -> throwIfInstanceOf(new SomeCheckedException(), SomeCheckedException.class));
      }
    
      @GwtIncompatible // throwIfInstanceOf
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java

                } else {
                  haveBeenCalled = true;
                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              throw new SomeCheckedException();
            };
        assertThrows(
            SomeCheckedException.class, () -> Callables.threadRenaming(callable, newName).call());
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              throw new SomeCheckedException();
            };
        assertThrows(
            SomeCheckedException.class, () -> Callables.threadRenaming(callable, newName).call());
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                } else {
                  haveBeenCalled = true;
                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                } else {
                  haveBeenCalled = true;
                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

                } else {
                  haveBeenCalled = true;
                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  9. 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");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  10. 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");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
Back to Top