Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for expectMissing (0.08 sec)

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

                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
                      return null;
                    }));
        expectMissing(e0());
        expectMissingKeys(k0());
        assertEquals(getNumElements() - 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
                      return null;
                    }));
        expectMissing(e0());
        expectMissingKeys(k0());
        assertEquals(getNumElements() - 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        assertThrows(UnsupportedOperationException.class, () -> putAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutAll_supportedSomePresent() {
        putAll(MinimalCollection.of(e3(), e0()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        return getSampleElements(howMany);
      }
    
      protected Collection<Entry<K, V>> getSampleEntries() {
        return getSampleElements();
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        for (Entry<K, V> entry : entries) {
          assertFalse("Should not contain entry " + entry, actualContents().contains(entry));
          assertFalse(
    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. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        assertThrows(UnsupportedOperationException.class, () -> putAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutAll_supportedSomePresent() {
        putAll(MinimalCollection.of(e3(), e0()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      public void testAddAll_unsupportedNonePresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> collection.addAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAll_supportedSomePresent() {
        assertTrue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPut_unsupportedNotPresent() {
        assertThrows(UnsupportedOperationException.class, () -> put(e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPut_unsupportedPresentExistingValue() {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        return getSampleElements(howMany);
      }
    
      protected Collection<Entry<K, V>> getSampleEntries() {
        return getSampleElements();
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        for (Entry<K, V> entry : entries) {
          assertFalse("Should not contain entry " + entry, actualContents().contains(entry));
          assertFalse(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * AbstractListTester isn't enough because many tests that run on lists don't
       * extends AbstractListTester.) We could also iterate over all elements to
       * verify absence
       */
      protected void expectMissing(E... elements) {
        for (E element : elements) {
          assertFalse("Should not contain " + element, actualContents().contains(element));
        }
      }
    
      protected E[] createSamplesArray() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top