Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for failureCase (0.17 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SmbCircuitBreaker.java

                // If failure rate is high but response time is normal, be more lenient
                if (failureRate > 0.5 && avgResponseTime < 5000) {
                    newThreshold = Math.min(currentThreshold + 2, 15);
                }
                // If failure rate is moderate but response time is very high, be stricter
                else if (failureRate > 0.2 && avgResponseTime > 10000) {
                    newThreshold = Math.max(currentThreshold - 1, 2);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        assertThat(getDone(immediateVoidFuture())).isEqualTo(null);
      }
    
      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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 01:35:55 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top