Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for SomeUncheckedException (0.95 sec)

  1. 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")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (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")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. 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();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

      public void testComputeIfAbsent_functionThrows() {
        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .computeIfAbsent(
                        k3(),
                        k -> {
                          assertEquals(k3(), k);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .merge(
                        k0(),
                        v3(),
                        (oldV, newV) -> {
                          assertEquals(v0(), oldV);
                          assertEquals(v3(), newV);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. android/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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. 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();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

      public void testComputeIfAbsent_functionThrows() {
        assertThrows(
            SomeUncheckedException.class,
            () ->
                getMap()
                    .computeIfAbsent(
                        k3(),
                        k -> {
                          assertEquals(k3(), k);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.7K bytes
    - Viewed (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();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top