Search Options

Results per page
Sort
Preferred Languages
Advance

Results 871 - 880 of 1,808 for try (0.01 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt

        val issuer = cert.issuerX500Principal
        val subjectCaCerts = subjectToCaCerts[issuer] ?: return null
    
        return subjectCaCerts.firstOrNull {
          try {
            cert.verify(it.publicKey)
            return@firstOrNull true
          } catch (_: Exception) {
            return@firstOrNull false
          }
        }
      }
    
      override fun equals(other: Any?): Boolean =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk9PlatformTest.kt

      @Test
      fun buildsWhenJdk9() {
        platform.assumeJdk9()
        assertThat(buildIfSupported()).isNotNull()
      }
    
      @Test
      fun buildsWhenJdk8() {
        platform.assumeJdk8()
        try {
          SSLSocket::class.java.getMethod("getApplicationProtocol")
          // also present on JDK8 after build 252.
          assertThat(buildIfSupported()).isNotNull()
        } catch (nsme: NoSuchMethodException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt

      @Test
      open fun testPublicSuffixDb() {
        val httpUrl = "https://www.google.co.uk".toHttpUrl()
        assertThat(httpUrl.topPrivateDomain()).isEqualTo("google.co.uk")
      }
    
      private fun assumeNetwork() {
        try {
          InetAddress.getByName("www.google.com")
        } catch (uhe: UnknownHostException) {
          throw AssumptionViolatedException(uhe.message, uhe)
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 22 20:03:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

      fun dnsFail() {
        client =
          OkHttpClient
            .Builder()
            .dns { _ -> throw UnknownHostException("reason") }
            .eventListenerFactory(loggingEventListenerFactory)
            .build()
        try {
          client.newCall(request().build()).execute()
          fail<Any>()
        } catch (expected: UnknownHostException) {
        }
        logRecorder
          .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}"""))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        }
      }
    
      public void testValueOfLong() {
        long min = 0;
        long max = (1L << 32) - 1;
        for (long value : TEST_LONGS) {
          boolean expectSuccess = value >= min && value <= max;
          try {
            assertThat(UnsignedInteger.valueOf(value).longValue()).isEqualTo(value);
            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterService.java

         * @throws CrawlerSystemException if the patterns cannot be loaded.
         */
        @Override
        public List<Pattern> getIncludeUrlPatternList(final String sessionId) {
            try {
                return includeFilterCache.get(sessionId);
            } catch (final ExecutionException e) {
                throw new CrawlerSystemException(e);
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    buildQuery("sort:timestamp.desc sort:last_modified.desc"));
    
            try {
                buildQuery("sort:timestamp.xxx");
                fail();
            } catch (InvalidQueryException e) {
                // ok
            }
    
            try {
                buildQuery("sort:aaa");
                fail();
            } catch (InvalidQueryException e) {
                // ok
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            return buffer;
        }
    
        private NegotiateContextRequest createMockPreauthContext() {
            PreauthIntegrityNegotiateContext ctx = new PreauthIntegrityNegotiateContext();
            try {
                setPrivateField(ctx, "hashAlgos", new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 });
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
            return ctx;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

            ) {
              latch.countDown()
            }
    
            @Throws(IOException::class)
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              try {
                Thread.sleep(500)
              } catch (e: InterruptedException) {
                throw AssertionError()
              }
              assertFailsWith<IOException> {
                response.body.source().readUtf8()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

      }
    
      static class ThrowsAtEndException extends RuntimeException {
        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
       * fetch the extra elements, it throws an unchecked exception.
       */
      static class ThrowsAtEndIterator<E> implements Iterator<E> {
        Iterator<E> iterator;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top