Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for resetContainer (0.1 sec)

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

        for (K key : sampleKeys()) {
          resetContainer();
          Collection<V> collection = multimap().get(key);
          multimap().clear();
          assertEmpty(collection);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClearPropagatesToAsMapGet() {
        for (K key : sampleKeys()) {
          resetContainer();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresentKeyPropagatesToGet() {
        List<K> keys = copyToList(multimap().keySet());
        for (K key : keys) {
          resetContainer();
    
          int size = getNumElements();
    
          Collection<V> collection = multimap().get(key);
          Collection<V> expectedCollection = copyToList(collection);
    
          multimap().put(key, v3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresentKeyPropagatesToGet() {
        List<K> keys = copyToList(multimap().keySet());
        for (K key : keys) {
          resetContainer();
    
          int size = getNumElements();
    
          Collection<V> collection = multimap().get(key);
          Collection<V> expectedCollection = copyToList(collection);
    
          multimap().put(key, v3());
    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/AbstractMapTester.java

      @Override
      protected Collection<Entry<K, V>> actualContents() {
        return getMap().entrySet();
      }
    
      /** @see AbstractContainerTester#resetContainer() */
      protected final void resetMap() {
        resetContainer();
      }
    
      protected void resetMap(Entry<K, V>[] entries) {
        resetContainer(getSubjectGenerator().create((Object[]) entries));
      }
    
      protected void expectMissingKeys(K... elements) {
        for (K element : elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java

      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testReplaceValuesPreservesOrder() {
        List<V> values = asList(v3(), v1(), v4());
    
        for (K k : sampleKeys()) {
          resetContainer();
          multimap().replaceValues(k, values);
          assertGet(k, values);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllHandlesDuplicates() {
        List<V> valuesToPut = asList(v0(), v1(), v0());
    
        for (K k : sampleKeys()) {
          resetContainer();
    
          Set<V> expectedValues = copyToSet(multimap().get(k));
    
          multimap().putAll(k, valuesToPut);
          expectedValues.addAll(valuesToPut);
    
          assertGet(k, expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java

      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testReplaceValuesHandlesDuplicates() {
        List<V> values = asList(v0(), v1(), v0());
    
        for (K k : sampleKeys()) {
          resetContainer();
          multimap().replaceValues(k, values);
          assertGet(k, v0(), v1());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

      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)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

        expectContents(e2());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRetainAll_countIgnored() {
        resetContainer(getSubjectGenerator().create(e0(), e2(), e1(), e0()));
        assertTrue(getList().retainAll(asList(e0(), e1())));
        assertContentsInOrder(getList(), e0(), e1(), e0());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllAddsAtEndInOrder() {
        List<V> values = asList(v3(), v1(), v4());
    
        for (K k : sampleKeys()) {
          resetContainer();
    
          List<V> expectedValues = copyToList(multimap().get(k));
    
          assertTrue(multimap().putAll(k, values));
          expectedValues.addAll(values);
    
          assertGet(k, expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top