Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for assertLen (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

                      }
                    }));
        assertGet(k0(), v0(), v3(), v4());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllNonEmptyCollectionOnPresentKey() {
        assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4())));
        assertGet(k0(), v0(), v3(), v4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        List<V> values = asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
        List<V> values = asList(v0(), v2(), v3());
        multimap().replaceValues(null, values);
        assertGet(null, values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
    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. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        int size = getNumElements();
    
        assertGet(k3(), ImmutableList.<V>of());
    
        assertTrue(multimap().put(k3(), v3()));
    
        assertGet(k3(), v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresent() {
        int size = getNumElements();
    
        assertGet(k0(), v0());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        int size = getNumElements();
    
        assertGet(k3(), ImmutableList.<V>of());
    
        assertTrue(multimap().put(k3(), v3()));
    
        assertGet(k3(), v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresent() {
        int size = getNumElements();
    
        assertGet(k0(), v0());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

            List<V> values = multimap().get(key);
            List<V> expectedValues = copyToList(values);
    
            assertTrue(multimap().put(key, value));
            expectedValues.add(value);
    
            assertGet(key, expectedValues);
            assertEquals(value, values.get(values.size() - 1));
          }
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

            List<V> values = multimap().get(key);
            List<V> expectedValues = copyToList(values);
    
            assertTrue(multimap().put(key, value));
            expectedValues.add(value);
    
            assertGet(key, expectedValues);
            assertEquals(value, values.get(values.size() - 1));
          }
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        List<V> values = asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
        List<V> values = asList(v0(), v2(), v3());
        multimap().replaceValues(null, values);
        assertGet(null, values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

      /**
       * @see AbstractContainerTester#resetContainer()
       */
      protected void resetCollection() {
        resetContainer();
      }
    
      protected void assertGet(K key, V... values) {
        assertGet(key, asList(values));
      }
    
      protected void assertGet(K key, Collection<? extends V> values) {
        assertEqualIgnoringOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testGetMultiple() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2()));
        assertGet(k0(), v0(), v1(), v2());
      }
    
      public void testGetAbsentKey() {
        assertGet(k4());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveToMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
        assertGet(k0());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesClearToMultimap() {
        Collection<V> result = multimap().asMap().get(k0());
        result.clear();
        assertGet(k0());
        assertEmpty(result);
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top