Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 663 for FAILURE (0.27 sec)

  1. android/guava-tests/test/com/google/common/base/VerifyTest.java

        verify(true);
      }
    
      public void testVerify_simple_failure() {
        try {
          verify(false);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
      public void testVerify_simpleMessage_success() {
        verify(true, "message");
      }
    
      public void testVerify_simpleMessage_failure() {
        try {
          verify(false, "message");
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      fun assertFailure(message: String?) {
        val event = nextEvent() as Failure
        if (message != null) {
          assertThat(event.t!!.message).isEqualTo(message)
        } else {
          assertThat(event.t).isNull()
        }
      }
    
      internal data class Open(
        val eventSource: EventSource,
        val response: Response,
      )
    
      internal data class Failure(
        val t: Throwable?,
        val response: Response?,
      )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              // misconfigured mock. Try to switch to Failure.
              Failure failure;
              try {
                failure = new Failure(t);
              } catch (Exception | Error oomMostLikely) { // sneaky checked exception
                failure = Failure.FALLBACK_INSTANCE;
              }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

     * used so that OkHttp can learn from its mistakes: if there was a failure attempting to connect to
     * a specific IP address or proxy server, that failure is remembered and alternate routes are
     * preferred.
     */
    class RouteDatabase {
      private val _failedRoutes = mutableSetOf<Route>()
    
      val failedRoutes: Set<Route>
        @Synchronized get() = _failedRoutes.toSet()
    
      /** Records a failure connecting to [failedRoute]. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      public void testTrustedGetFailure_Failed() {
        SettableFuture<String> future = SettableFuture.create();
        Throwable failure = new Throwable();
        future.setException(failure);
        assertThat(future.tryInternalFastPathGetFailure()).isEqualTo(failure);
      }
    
      public void testTrustedGetFailure_NotCompleted() {
        SettableFuture<String> future = SettableFuture.create();
    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)
  6. .teamcity/src/main/kotlin/common/performance-test-extensions.kt

    const val individualPerformanceTestArtifactRules = """
    testing/*/build/test-results-*.zip => results
    testing/*/build/tmp/**/log.txt => failure-logs
    testing/*/build/tmp/**/profile.log => failure-logs
    testing/*/build/tmp/**/daemon-*.out.log => failure-logs
    """
    
    // to avoid pathname too long error
    fun BuildSteps.substDirOnWindows(os: Os) {
        if (os == Os.WINDOWS) {
            script {
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu Apr 04 07:21:42 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        if (failures.isEmpty()) {
          throw UnknownHostException(hostname)
        }
    
        val failure = failures[0]
    
        if (failure is UnknownHostException) {
          throw failure
        }
    
        val unknownHostException = UnknownHostException(hostname)
        unknownHostException.initCause(failure)
    
        for (i in 1 until failures.size) {
          unknownHostException.addSuppressed(failures[i])
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        @Nullable private String value = null;
        @Nullable private Throwable failure = null;
        private boolean wasCalled = false;
    
        MockCallback(String expectedValue) {
          this.value = expectedValue;
        }
    
        public MockCallback(Throwable expectedFailure) {
          this.failure = expectedFailure;
        }
    
        @Override
        public synchronized void onSuccess(String result) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Nov 15 16:33:21 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        @Override
        protected void doStart() {
          notifyFailed(new IllegalStateException("start failure"));
        }
      }
    
      private static class FailRunService extends NoOpService {
        @Override
        protected void doStart() {
          super.doStart();
          notifyFailed(new IllegalStateException("run failure"));
        }
      }
    
      private static class FailStopService extends NoOpService {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  10. cni/pkg/install/kubeconfig_test.go

    			}
    			result, err := createKubeConfig(cfg)
    			if err != nil {
    				if !c.expectedFailure {
    					t.Fatalf("did not expect failure: %v", err)
    				}
    				// Successful test case expecting failure
    				return
    			} else if c.expectedFailure {
    				t.Fatalf("expected failure")
    			}
    
    			goldenFilepath := "testdata/kubeconfig-tls"
    			if c.skipTLSVerify {
    				goldenFilepath = "testdata/kubeconfig-skip-tls"
    			}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top