Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 231 for AssertionError (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

          case NEXT_HIGHER:
            assertEquals(nextHigherIndex, answer);
            return;
          case INVERTED_INSERTION_INDEX:
            assertEquals(-1 - nextHigherIndex, answer);
            return;
        }
        throw new AssertionError();
      }
    
      public void testWithoutDups() {
        for (KeyPresentBehavior presentBehavior : KeyPresentBehavior.values()) {
          for (KeyAbsentBehavior absentBehavior : KeyAbsentBehavior.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java

          ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
          return (T) in.readObject();
        } catch (IOException | ClassNotFoundException e) {
          throw new AssertionError(e);
        }
      }
    
      @Override
      public SampleElements<E> samples() {
        return delegate.samples();
      }
    
      @Override
      public E[] createArray(int length) {
        return delegate.createArray(length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

              return null
            }
    
            override fun contentLength(): Long {
              return Int.MAX_VALUE + 1L
            }
    
            override fun source(): BufferedSource {
              throw AssertionError()
            }
          }
        assertFailsWith<IOException> {
          body.bytes()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

                source.skip(lineEnd)
                source.select(options)
              } else {
                return false // No more newlines.
              }
            }
    
            else -> throw AssertionError()
          }
        }
      }
    
      @Throws(IOException::class)
      private fun completeEvent(
        id: String?,
        type: String?,
        data: Buffer,
      ) {
        if (data.size != 0L) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

            fail();
          } catch (IllegalArgumentException expected) {
          }
        } catch (NoSuchAlgorithmException nsae) {
          throw new AssertionError(nsae);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeVisitor.java

              visitClass((Class<?>) type);
            } else if (type instanceof GenericArrayType) {
              visitGenericArrayType((GenericArrayType) type);
            } else {
              throw new AssertionError("Unknown type: " + type);
            }
            succeeded = true;
          } finally {
            if (!succeeded) { // When the visitation failed, we don't want to ignore the second.
              visited.remove(type);
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (assertionsEnabled && !taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
        }
      }
    
      @Suppress("NOTHING_TO_INLINE")
      internal inline fun Any.assertThreadDoesntHoldLock() {
        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      // clean up these threads.
      @SuppressWarnings("deprecation")
      @Override
      public void tearDown() throws Exception {
        stop();
        join();
    
        if (uncaughtThrowable != null) {
          throw new AssertionError("Uncaught throwable in " + getName(), uncaughtThrowable);
        }
      }
    
      /**
       * Causes this thread to call the named void method, and asserts that the call returns normally.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/MapMakerInternalMap.java

        private DummyInternalEntry() {
          throw new AssertionError();
        }
    
        @Override
        public DummyInternalEntry getNext() {
          throw new AssertionError();
        }
    
        @Override
        public int getHash() {
          throw new AssertionError();
        }
    
        @Override
        public Object getKey() {
          throw new AssertionError();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      public UnmodifiableIterator<E> descendingIterator() {
        return forward.iterator();
      }
    
      @Override
      @GwtIncompatible("NavigableSet")
      ImmutableSortedSet<E> createDescendingSet() {
        throw new AssertionError("should never be called");
      }
    
      @Override
      @CheckForNull
      public E lower(E element) {
        return forward.higher(element);
      }
    
      @Override
      @CheckForNull
      public E floor(E element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top