Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for failureCase (0.04 sec)

  1. 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)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

      }
    
      public void testFailed() {
        Exception failureCause = new Exception();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> getDone(immediateFailedFuture(failureCause)));
        assertThat(expected).hasCauseThat().isEqualTo(failureCause);
      }
    
      public void testCancelled() throws ExecutionException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AbstractService.java

            return STOPPING;
          } else {
            return state;
          }
        }
    
        /**
         * @see Service#failureCause()
         */
        Throwable failureCause() {
          checkState(
              state == FAILED,
              "failureCause() is only valid if the service has failed, service is %s",
              state);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractService.java

            return STOPPING;
          } else {
            return state;
          }
        }
    
        /**
         * @see Service#failureCause()
         */
        Throwable failureCause() {
          checkState(
              state == FAILED,
              "failureCause() is only valid if the service has failed, service is %s",
              state);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        executionThread.join();
    
        assertTrue(service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.failureCause()).hasMessageThat().isEqualTo("kaboom!");
      }
    
      private class ThrowOnStartUpService extends AbstractExecutionThreadService {
        private boolean startUpCalled = false;
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

        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;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

        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;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Service.java

      /**
       * Returns the {@link Throwable} that caused this service to fail.
       *
       * @throws IllegalStateException if this service's state isn't {@linkplain State#FAILED FAILED}.
       * @since 14.0
       */
      Throwable failureCause();
    
      /**
       * Registers a {@link Listener} to be {@linkplain Executor#execute executed} on the given
       * executor. The listener will have the corresponding transition method called whenever the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

              }
    
              @Override
              public final State state() {
                return delegate.state();
              }
    
              @Override
              public final Throwable failureCause() {
                return delegate.failureCause();
              }
            };
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

        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;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top