Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for assertContainsAllOf (0.36 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        assertContainsAllOf(list, "a");
        assertContainsAllOf(list, "a", "a");
        assertContainsAllOf(list, "a", "b", "c");
        assertContainsAllOf(list, "a", "b", "c", "a");
    
        try {
          assertContainsAllOf(list, "d");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContainsAllOf(list, "a", "b", "c", "d");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        assertContainsAllOf(list, "a");
        assertContainsAllOf(list, "a", "a");
        assertContainsAllOf(list, "a", "b", "c");
        assertContainsAllOf(list, "a", "b", "c", "a");
    
        try {
          assertContainsAllOf(list, "d");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContainsAllOf(list, "a", "b", "c", "d");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
        assertContainsAllOf(keys, k0(), k1());
        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testKeysCountAbsentNullKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
        assertContainsAllOf(keys, k0(), k1());
        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testKeysCountAbsentNullKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

     * limitations under the License.
     */
    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.testing.Helpers.assertContainsAllOf;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

              break;
            }
          }
        }
    
        if (!contained) {
          fail("Not true that " + actual + " contains " + expected);
        }
      }
    
      public static void assertContainsAllOf(Iterable<?> actual, Object... expected) {
        List<Object> expectedList = new ArrayList<>(asList(expected));
    
        for (Object o : actual) {
          expectedList.remove(o);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/Helpers.java

              break;
            }
          }
        }
    
        if (!contained) {
          fail("Not true that " + actual + " contains " + expected);
        }
      }
    
      public static void assertContainsAllOf(Iterable<?> actual, Object... expected) {
        List<Object> expectedList = new ArrayList<>(asList(expected));
    
        for (Object o : actual) {
          expectedList.remove(o);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top