Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 29 for SomeUncheckedException (0.2 seconds)

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

      }
    
      public void testException() {
        SomeUncheckedException exception = new SomeUncheckedException();
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              public Integer computeNext() {
                throw exception;
              }
            };
    
        // It should pass through untouched
        SomeUncheckedException e = assertThrows(SomeUncheckedException.class, iter::hasNext);
    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)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

      @SuppressWarnings("ThrowIfUncheckedKnownUnchecked")
      public void testThrowIfUnchecked_unchecked() {
        assertThrows(
            SomeUncheckedException.class, () -> throwIfUnchecked(new SomeUncheckedException()));
      }
    
      // We're testing that the method is in fact equivalent to throwing the exception directly.
      @SuppressWarnings("ThrowIfUncheckedKnownUnchecked")
    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. guava-tests/test/com/google/common/base/ThrowablesTest.java

      @SuppressWarnings("ThrowIfUncheckedKnownUnchecked")
      public void testThrowIfUnchecked_unchecked() {
        assertThrows(
            SomeUncheckedException.class, () -> throwIfUnchecked(new SomeUncheckedException()));
      }
    
      // We're testing that the method is in fact equivalent to throwing the exception directly.
      @SuppressWarnings("ThrowIfUncheckedKnownUnchecked")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

      }
    
      public void testException() {
        SomeUncheckedException exception = new SomeUncheckedException();
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              public Integer computeNext() {
                throw exception;
              }
            };
    
        // It should pass through untouched
        SomeUncheckedException e = assertThrows(SomeUncheckedException.class, iter::hasNext);
    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)
  5. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

      }
    
      public void testException() {
        SomeUncheckedException exception = new SomeUncheckedException();
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              public Integer computeNext() {
                throw exception;
              }
            };
    
        // It should pass through untouched
        SomeUncheckedException e = assertThrows(SomeUncheckedException.class, iter::hasNext);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

      }
    
      public void testException() {
        SomeUncheckedException exception = new SomeUncheckedException();
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              public Integer computeNext() {
                throw exception;
              }
            };
    
        // It should pass through untouched
        SomeUncheckedException e = assertThrows(SomeUncheckedException.class, iter::hasNext);
    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/AbstractSequentialIteratorTest.java

        Iterator<Object> broken = new BrokenAbstractSequentialIterator();
        assertTrue(broken.hasNext());
        // We can't retrieve even the known first element:
        assertThrows(SomeUncheckedException.class, broken::next);
        assertThrows(SomeUncheckedException.class, broken::next);
      }
    
      private static Iterator<Integer> newDoubler(int first, int last) {
        return new AbstractSequentialIterator<Integer>(first) {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .compute(
                        k0(),
                        (k, v) -> {
                          assertEquals(k0(), k);
                          assertEquals(v0(), v);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .compute(
                        k0(),
                        (k, v) -> {
                          assertEquals(k0(), k);
                          assertEquals(v0(), v);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .computeIfPresent(
                        k0(),
                        (k, v) -> {
                          assertEquals(k0(), k);
                          assertEquals(v0(), v);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 6.1K bytes
    - Click Count (0)
Back to Top