Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for expectMissing (0.18 sec)

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

      public void testRemoveKeyRemovesFromInverse() {
        getMap().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyFromKeySetRemovesFromInverse() {
        getMap().keySet().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java

      public void testRemoveKeyRemovesFromInverse() {
        getMap().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyFromKeySetRemovesFromInverse() {
        getMap().keySet().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/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/google/AbstractBiMapTester.java

              "Wrong key for value " + entry.getValue(),
              entry.getKey(),
              getMap().inverse().get(entry.getValue()));
        }
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        super.expectMissing(entries);
        for (Entry<K, V> entry : entries) {
          Entry<V, K> reversed = reverseEntry(entry);
          BiMap<V, K> inv = getMap().inverse();
          assertFalse(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/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)
  6. guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

        expectMissing(e0());
      }
    
      @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testRemove_sizeMany() {
        assertEquals("sizeManyQueue.remove() should return first element", e0(), getQueue().remove());
        expectMissing(e0());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java

        assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    
      @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testPoll_sizeMany() {
        assertEquals("sizeManyQueue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

              "Wrong key for value " + entry.getValue(),
              entry.getKey(),
              getMap().inverse().get(entry.getValue()));
        }
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        super.expectMissing(entries);
        for (Entry<K, V> entry : entries) {
          Entry<V, K> reversed = reverseEntry(entry);
          BiMap<V, K> inv = getMap().inverse();
          assertFalse(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/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)
  10. 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)
Back to top