Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for expectAdded (0.07 sec)

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

            v3(),
            getMap()
                .computeIfAbsent(
                    k3(),
                    k -> {
                      assertEquals(k3(), k);
                      return v3();
                    }));
        expectAdded(e3());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfAbsent_supportedPresent() {
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was absent");
                    }));
        expectAdded(e3());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testMappedToNull() {
        initMapWithNullValue();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

      @CollectionFeature.Require(SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedPresent() {
        assertTrue("add(present) should return true", getList().add(e0()));
        expectAdded(e0());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      /*
       * absent = ZERO isn't required, since unmodList.add() must
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

      public void testAddAll_nonEmptyList() {
        assertTrue(getMultiset().addAll(asList(e3(), e4(), e3())));
        expectAdded(e3(), e4(), e3());
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_nonEmptyMultiset() {
        assertTrue(getMultiset().addAll(getSubjectGenerator().create(e3(), e4(), e3())));
        expectAdded(e3(), e4(), e3());
      }
    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/CollectionAddAllTester.java

      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_supportedNonePresent() {
        assertTrue(
            "addAll(nonePresent) should return true", collection.addAll(createDisjointCollection()));
        expectAdded(e3(), e4());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNonePresent() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutIfAbsent_supportedAbsent() {
        assertNull("putIfAbsent(notPresent, value) should return null", putIfAbsent(e3()));
        expectAdded(e3());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_supportedPresent() {
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

      @CollectionFeature.Require(SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedPresent() {
        assertTrue("add(present) should return true", getList().add(e0()));
        expectAdded(e0());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      /*
       * absent = ZERO isn't required, since unmodList.add() must
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

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

      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testSubList_subListAddAffectsOriginal() {
        List<E> subList = getList().subList(0, 0);
        subList.add(e3());
        expectAdded(0, e3());
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = ZERO)
      public void testSubList_subListSetAffectsOriginal() {
        List<E> subList = getList().subList(0, 1);
    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. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                .compute(
                    k3(),
                    (k, v) -> {
                      assertEquals(k3(), k);
                      assertNull(v);
                      return v3();
                    }));
        expectAdded(e3());
        assertEquals(getNumElements() + 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToAbsent() {
        assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top