Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for expectedValues (0.14 sec)

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

          for (V value : sampleValues()) {
            resetContainer();
    
            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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java

        for (int i = 0; i < 3; i++) {
          resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0()));
          List<V> expectedValues = copyToList(values);
    
          multimap().get(k0()).remove(i);
          expectedValues.remove(i);
    
          assertGet(k0(), expectedValues);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRemoveAtIndexFromAsMapPropagates() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        assertEquals(expected.entrySet(), map.entrySet());
    
        // Assert that expectedValues > mapValues and that
        // mapValues > expectedValues; i.e. that expectedValues == mapValues.
        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
        assertEquals(expectedValues.size(), mapValues.size());
        assertTrue(expectedValues.containsAll(mapValues));
        assertTrue(mapValues.containsAll(expectedValues));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        // Assert that expectedValues > mapValues and that
        // mapValues > expectedValues; i.e. that expectedValues == mapValues.
        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
        assertEquals(expectedValues.size(), mapValues.size());
        assertTrue(expectedValues.containsAll(mapValues));
        assertTrue(mapValues.containsAll(expectedValues));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

          for (V value : sampleValues()) {
            resetContainer();
    
            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)
    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/MultimapAsMapTester.java

      public void testAsMapGet() {
        for (K key : sampleKeys()) {
          List<V> expectedValues = new ArrayList<>();
          for (Entry<K, V> entry : getSampleElements()) {
            if (entry.getKey().equals(key)) {
              expectedValues.add(entry.getValue());
            }
          }
    
          Collection<V> collection = multimap().asMap().get(key);
          if (expectedValues.isEmpty()) {
            assertNull(collection);
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java

        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)
  8. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java

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

        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)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

      public void testAsMapGet() {
        for (K key : sampleKeys()) {
          List<V> expectedValues = new ArrayList<>();
          for (Entry<K, V> entry : getSampleElements()) {
            if (entry.getKey().equals(key)) {
              expectedValues.add(entry.getValue());
            }
          }
    
          Collection<V> collection = multimap().asMap().get(key);
          if (expectedValues.isEmpty()) {
            assertNull(collection);
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top