Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for getCause (0.1 seconds)

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

        ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(future));
        assertThat(expected.getCause()).isEqualTo(exception);
    
        expected = assertThrows(ExecutionException.class, () -> getDoneFromTimeoutOverload(future));
        assertThat(expected.getCause()).isEqualTo(exception);
      }
    
      public void testImmediateFailedFuture_cancellationException() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(future));
        assertThat(expected.getCause()).isEqualTo(exception);
    
        expected = assertThrows(ExecutionException.class, () -> getDoneFromTimeoutOverload(future));
        assertThat(expected.getCause()).isEqualTo(exception);
      }
    
      public void testImmediateFailedFuture_cancellationException() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        RemovalNotification<K, V> notification = listener.remove();
        assertThat(notification.getKey()).isSameInstanceAs(key);
        assertThat(notification.getValue()).isSameInstanceAs(value);
        assertThat(notification.getCause()).isEqualTo(cause);
      }
    
      // Segment core tests
    
      public void testNewEntry() {
        for (CacheBuilder<Object, Object> builder : allEntryTypeMakers()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        RemovalNotification<K, V> notification = listener.remove();
        assertThat(notification.getKey()).isSameInstanceAs(key);
        assertThat(notification.getValue()).isSameInstanceAs(value);
        assertThat(notification.getCause()).isEqualTo(cause);
      }
    
      // Segment core tests
    
      public void testNewEntry() {
        for (CacheBuilder<Object, Object> builder : allEntryTypeMakers()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

           * exist but throw, so we propagate anything that's thrown, presumably an unchecked Exception
           * or Error.
           */
          throwIfUnchecked(e.getCause());
          throw new AssertionError(e.getCause());
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/cache/LocalCache.java

              }
            }
    
            // at this point e is either null or expired;
            return lockedGetOrLoad(key, hash, loader);
          } catch (ExecutionException ee) {
            Throwable cause = ee.getCause();
            if (cause instanceof Error) {
              throw new ExecutionError((Error) cause);
            } else if (cause instanceof RuntimeException) {
              throw new UncheckedExecutionException(cause);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  7. guava/src/com/google/common/cache/LocalCache.java

              }
            }
    
            // at this point e is either null or expired;
            return lockedGetOrLoad(key, hash, loader);
          } catch (ExecutionException ee) {
            Throwable cause = ee.getCause();
            if (cause instanceof Error) {
              throw new ExecutionError((Error) cause);
            } else if (cause instanceof RuntimeException) {
              throw new UncheckedExecutionException(cause);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top