Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for SomeError (0.08 sec)

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

        assertEquals(result, future.get());
        assertThat(successCalls[0]).isEqualTo(1);
        assertThat(failureCalls[0]).isEqualTo(0);
      }
    
      public void testOnSuccessThrowsError() throws Exception {
        SomeError error = new SomeError();
        String result = "result";
        SettableFuture<String> future = SettableFuture.create();
        int[] successCalls = new int[1];
        int[] failureCalls = new int[1];
        FutureCallback<String> callback =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThrows(
            SomeUncheckedException.class, () -> throwIfUnchecked(new SomeUncheckedException()));
      }
    
      public void testThrowIfUnchecked_error() {
        assertThrows(SomeError.class, () -> throwIfUnchecked(new SomeError()));
      }
    
      @SuppressWarnings("ThrowIfUncheckedKnownChecked")
      public void testThrowIfUnchecked_checked() {
        throwIfUnchecked(new SomeCheckedException());
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThrows(
            SomeUncheckedException.class, () -> throwIfUnchecked(new SomeUncheckedException()));
      }
    
      public void testThrowIfUnchecked_error() {
        assertThrows(SomeError.class, () -> throwIfUnchecked(new SomeError()));
      }
    
      @SuppressWarnings("ThrowIfUncheckedKnownChecked")
      public void testThrowIfUnchecked_checked() {
        throwIfUnchecked(new SomeCheckedException());
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
              .put(SomeError.class, e -> e instanceof SomeError)
              .put(SomeOtherCheckedException.class, e -> e instanceof SomeOtherCheckedException)
              .put(SomeUncheckedException.class, e -> e instanceof SomeUncheckedException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/TestExceptions.java

    package com.google.common.collect.testing.testers;
    
    import com.google.common.annotations.GwtCompatible;
    
    /** Exception classes for use in tests. */
    @GwtCompatible
    final class TestExceptions {
      static class SomeError extends Error {}
    
      static class SomeCheckedException extends Exception {}
    
      static class SomeOtherCheckedException extends Exception {}
    
      static class YetAnotherCheckedException extends Exception {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top