Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for expectMissing (0.12 sec)

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

      }
    
      protected void initCollectionWithNullElement() {
        E[] array = createArrayWithNullElement();
        resetContainer(getSubjectGenerator().create(array));
      }
    
      /**
       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

        expectUnchanged();
        expectMissing(e3());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_tooLarge() {
        assertThrows(
            IndexOutOfBoundsException.class,
            () -> getList().addAll(getNumElements() + 1, MinimalCollection.of(e3())));
        expectUnchanged();
        expectMissing(e3());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java

        assertContentsAnyOrder(multimap().removeAll(k0()), v0());
        expectMissing(e0());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllPropagatesToGet() {
        Collection<V> getResult = multimap().get(k0());
    
        multimap().removeAll(k0());
    
        assertEmpty(getResult);
        expectMissing(e0());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

            collection.removeAll(MinimalCollection.of(e0())));
        expectMissing(e0());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveAll_somePresent() {
        assertTrue(
            "removeAll(intersectingCollection) should return true",
            collection.removeAll(MinimalCollection.of(e0(), e3())));
        expectMissing(e0());
      }
    
    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/testers/ListAddAtIndexTester.java

        expectUnchanged();
        expectMissing(e3());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_tooLarge() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().add(getNumElements() + 1, e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        assertEquals(
            "remove(present) should decrease a collection's size by one.",
            initialSize - 1,
            collection.size());
        expectMissing(e0());
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      @CollectionSize.Require(SEVERAL)
      public void testRemovePresentConcurrentWithIteration() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

        assertEquals("remove(present) should return the associated value", v0(), getMap().remove(k0()));
        assertEquals(
            "remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size());
        expectMissing(e0());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testRemovePresentConcurrentWithEntrySetIteration() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePropagatesToMultimap() {
        assertTrue(multimap().entries().remove(mapEntry(k0(), v0())));
        expectMissing(mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @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)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
        assertEquals(getNumElements() - 1, multimap().size());
        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
        assertEquals(getNumElements() - 1, multimap().size());
        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top