Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 456 for assertThrows (0.08 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.AbstractMapTester;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        nullWriter.write(test);
        nullWriter.write(test, 2, 10);
        nullWriter.append(null);
        nullWriter.append(null, 0, 4);
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, 0, 5));
    
        // nothing really to assert?
        assertSame(CharStreams.nullWriter(), CharStreams.nullWriter());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            C unfiltered = createUnfiltered(contents);
            C filtered1 = filter(unfiltered, EVEN);
            C filtered2 = filter(filtered1, PRIME_DIGIT);
    
            assertThrows(IllegalArgumentException.class, () -> filtered2.add(4));
    
            assertThrows(IllegalArgumentException.class, () -> filtered2.add(3));
    
            filtered2.add(2);
          }
        }
    
        public void testClearFilterFiltered() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharStreamsTest.java

        nullWriter.write(test);
        nullWriter.write(test, 2, 10);
        nullWriter.append(null);
        nullWriter.append(null, 0, 4);
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, 0, 5));
    
        // nothing really to assert?
        assertSame(CharStreams.nullWriter(), CharStreams.nullWriter());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        assertThrows(IllegalStateException.class, () -> InternetDomainName.from("com").parent());
      }
    
      public void testChild() {
        InternetDomainName domain = InternetDomainName.from("foo.com");
    
        assertEquals("www.foo.com", domain.child("www").toString());
    
        assertThrows(IllegalArgumentException.class, () -> domain.child("www."));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertThrows(IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel((1 << 31) - 1));
        assertThrows(
            IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE));
        assertThrows(IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel(1 << 31));
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

            .isTrue();
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

                    Doubles.ensureCapacity(ARRAY1, 2, 1)))
            .isTrue();
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/FloatsTest.java

            .isTrue();
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top