Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 7,743 for Require (0.06 sec)

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

      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testElementSetReflectsAddAbsent() {
        Set<E> elementSet = getMultiset().elementSet();
        assertFalse(elementSet.contains(e3()));
        getMultiset().add(e3(), 4);
        assertTrue(elementSet.contains(e3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testElementSetReflectsRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

              iterator.next();
            });
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_notPresent() {
        assertFalse("remove(notPresent) should return false", collection.remove(e3()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_nullPresent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutAll_supportedSomePresent() {
        putAll(MinimalCollection.of(e3(), e0()));
        expectAdded(e3());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
      public void testPutAllSomePresentConcurrentWithEntrySetIteration() {
    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/google/MultisetAddTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetAddTester<E> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> getMultiset().add(e0()));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddMeansAddOne() {
        int originalCount = getMultiset().count(e0());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertNull(v);
                      return null;
                    }));
        expectUnchanged();
        assertEquals(getNumElements(), getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToPresent() {
        assertEquals(
            "Map.compute(present, functionReturningValue) should return new value",
            v3(),
            getMap()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertNull(v);
                      return null;
                    }));
        expectUnchanged();
        assertEquals(getNumElements(), getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToPresent() {
        assertEquals(
            "Map.compute(present, functionReturningValue) should return new value",
            v3(),
            getMap()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        collection.clear();
        assertTrue("After clear(), a collection should be empty.", collection.isEmpty());
        assertEquals(0, collection.size());
        assertFalse(collection.iterator().hasNext());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testMultimapRemoveDeletesFirstOccurrence() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0()));
    
        List<V> list = multimap().get(k0());
        multimap().remove(k0(), v0());
        assertContentsInOrder(list, v1(), v0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        expectContents(expected);
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_subListAddAtIndexAffectsOriginalLargeList() {
        List<E> subList = getList().subList(2, 3);
        subList.add(0, e3());
        expectAdded(2, e3());
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = {ZERO, ONE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        expectContents(expected);
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_subListAddAtIndexAffectsOriginalLargeList() {
        List<E> subList = getList().subList(2, 3);
        subList.add(0, e3());
        expectAdded(2, e3());
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = {ZERO, ONE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top