Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for failureCause (0.19 sec)

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

      }
    
      public void testFailed() {
        Exception failureCause = new Exception();
        try {
          getDone(immediateFailedFuture(failureCause));
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isEqualTo(failureCause);
        }
      }
    
      public void testCancelled() throws ExecutionException {
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

      }
    
      public void testFailed() {
        Exception failureCause = new Exception();
        try {
          getDone(immediateFailedFuture(failureCause));
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isEqualTo(failureCause);
        }
      }
    
      public void testCancelled() throws ExecutionException {
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

      public final void addListener(Listener listener, Executor executor) {
        delegate.addListener(listener, executor);
      }
    
      /** @since 14.0 */
      @Override
      public final Throwable failureCause() {
        return delegate.failureCause();
      }
    
      /** @since 15.0 */
      @CanIgnoreReturnValue
      @Override
      public final Service startAsync() {
        delegate.startAsync();
        return this;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

      public final void addListener(Listener listener, Executor executor) {
        delegate.addListener(listener, executor);
      }
    
      /** @since 14.0 */
      @Override
      public final Throwable failureCause() {
        return delegate.failureCause();
      }
    
      /** @since 15.0 */
      @CanIgnoreReturnValue
      @Override
      public final Service startAsync() {
        delegate.startAsync();
        return this;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            };
        Callable<@Nullable Void> completeExceptionallyRunnable =
            new Callable<@Nullable Void>() {
              Exception failureCause = new Exception("setException");
    
              @Override
              public @Nullable Void call() {
                if (currentFuture.get().setException(failureCause)) {
                  numSuccessfulSetCalls.incrementAndGet();
                }
                awaitUnchecked(barrier);
                return null;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            };
        Callable<@Nullable Void> completeExceptionallyRunnable =
            new Callable<@Nullable Void>() {
              Exception failureCause = new Exception("setException");
    
              @Override
              public @Nullable Void call() {
                if (currentFuture.get().setException(failureCause)) {
                  numSuccessfulSetCalls.incrementAndGet();
                }
                awaitUnchecked(barrier);
                return null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/test/kotlin/okhttp3/testing/PlatformRuleTest.kt

      }
    
      @Test
      fun testGreenCase() {
      }
    
      @Test
      fun testGreenCaseFailingOnLater() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion + 1)
      }
    
      @Test
      fun failureCase() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion)
    
        check(false)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top