Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 255 for fail (0.31 sec)

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

        try {
          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testBuilderAddAllHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        try {
          builder.addAll((Collection<String>) null);
          fail("expected NullPointerException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        waiter.start();
        awaitTimedWaiting(waiter);
        service.shutdown();
        Uninterruptibles.joinUninterruptibly(waiter, 10, TimeUnit.SECONDS);
        if (waiter.isAlive()) {
          waiter.interrupt();
          fail("awaitTermination failed to trigger after shutdown()");
        }
      }
    
      /** Wait for the given thread to reach the {@link State#TIMED_WAITING} thread state. */
      void awaitTimedWaiting(Thread thread) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Iterator;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsTesting.java

          try {
            actualStats.mean();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
          try {
            actualStats.populationVariance();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
          try {
            actualStats.min();
            fail("Expected IllegalStateException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 09 22:49:56 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        if (spliterator.estimateSize() > originalSize) {
          fail(
              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
          if (trySplit.estimateSize() > originalSize) {
            fail(
                format(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/StringsTest.java

          assertEquals(2 * i, Strings.repeat(input, i).length());
        }
    
        try {
          Strings.repeat("x", -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // Massive string
          Strings.repeat("12345678", (1 << 30) + 3);
          fail();
        } catch (ArrayIndexOutOfBoundsException expected) {
        }
      }
    
      // TODO: could remove if we got NPT working in GWT somehow
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       {@code cls}:
       *       <ul>
       *         <li>Test will fail if default value for a parameter cannot be determined.
       *         <li>Test will fail if the factory method returns null so testing instance methods is
       *             impossible.
       *         <li>Test will fail if the constructor or factory method throws exception.
       *       </ul>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/MediaTypeTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("te<t/plain");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/pl@in");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/plain;");
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 05 13:16:00 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

       * reclaimed.
       *
       * If any of this fails along the way, we fall back to loading Finalizer directly in the
       * application class loader.
       *
       * NOTE: The tests for this behavior (FinalizableReferenceQueueClassLoaderUnloadingTest) fail
       * strangely when run in JDK 9. We are considering this a known issue. Please see
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

      public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) {
        try {
          // fine because the call is going to fail without modifying the entry
          @SuppressWarnings("unchecked")
          Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry;
          nullableValueEntry.setValue(null);
          fail("setValue on unmodifiable Map.Entry succeeded");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 20:31:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top