Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 231 for AssertionError (0.14 sec)

  1. guava/src/com/google/common/math/BigIntegerMath.java

            BigInteger x2 = x.pow(2);
            int logX2Floor = x2.bitLength() - 1;
            return (logX2Floor < 2 * logFloor + 1) ? logFloor : logFloor + 1;
        }
        throw new AssertionError();
      }
    
      /*
       * The maximum number of bits in a square root for which we'll precompute an explicit half power
       * of two. This can be any value, but higher values incur more class load time and linearly
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Enums.java

        Class<?>
            clazz = enumValue.getDeclaringClass();
        try {
          return clazz.getDeclaredField(enumValue.name());
        } catch (NoSuchFieldException impossible) {
          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

              findByIssuerAndSignatureMethod.invoke(
                trustManager,
                cert,
              ) as TrustAnchor
            trustAnchor.trustedCert
          } catch (e: IllegalAccessException) {
            throw AssertionError("unable to get issues and signature", e)
          } catch (_: InvocationTargetException) {
            null
          }
        }
      }
    
      companion object {
        val isSupported: Boolean =
          when {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/DispatcherTest.kt

              Interceptor { chain: Interceptor.Chain? ->
                try {
                  ready.countDown()
                  waiting.await()
                } catch (e: InterruptedException) {
                  throw AssertionError()
                }
                throw IOException()
              },
            )
            .build()
        val a1 = client.newCall(newRequest("http://a/1"))
        val a2 = client.newCall(newRequest("http://a/2"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
      public void testAssertSubtypeTokenBeforeSupertypeToken_duplicate() {
        try {
          assertSubtypeTokenBeforeSupertypeToken(
              ImmutableList.of(TypeToken.of(String.class), TypeToken.of(String.class)));
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            arrayOf<KeyManager>(keyManager),
            arrayOf<TrustManager>(trustManager),
            SecureRandom(),
          )
          sslContext.socketFactory
        } catch (e: GeneralSecurityException) {
          throw AssertionError(e)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

      }
    
      private Method getTestSubscriberMethod(String name) {
        try {
          return getClass().getDeclaredMethod(name, Object.class);
        } catch (NoSuchMethodException e) {
          throw new AssertionError();
        }
      }
    
      /**
       * Records the provided object in {@link #methodArgument} and sets {@link #methodCalled}. This
       * method is called reflectively by Subscriber during tests, and must remain public.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

              path = requestHeaders.value(i)
              break
            }
            i++
          }
          if (path == null) {
            // TODO: send bad request error
            throw AssertionError()
          }
          val file = File(baseDirectory.toString() + path)
          if (file.isDirectory) {
            serveDirectory(stream, file.listFiles()!!)
          } else if (file.exists()) {
            serveFile(stream, file)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

                  called = true;
                }
              }
            };
        addCallback(f, callback, directExecutor());
        f.cancel(true);
      }
    
      public void testThrowErrorFromGet() {
        Error error = new AssertionError("ASSERT!");
        ListenableFuture<String> f = UncheckedThrowingFuture.throwingError(error);
        MockCallback callback = new MockCallback(error);
        addCallback(f, callback, directExecutor());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

              public int size() {
                return list.size();
              }
    
              @Override
              public String get(int index) {
                if (index < 2) {
                  throw new AssertionError();
                }
                return list.get(index);
              }
            };
    
        EvictingQueue<String> queue = EvictingQueue.create(3);
        assertTrue(queue.addAll(misbehavingList));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top