Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for createDisjointCollection (0.28 sec)

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

      public void testAddAllAtIndex_middle() {
        assertTrue(
            "addAll(middle, disjoint) should return true",
            getList().addAll(getNumElements() / 2, createDisjointCollection()));
        expectAdded(getNumElements() / 2, createDisjointCollection());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_end() {
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

      public void testAddAllAtIndex_middle() {
        assertTrue(
            "addAll(middle, disjoint) should return true",
            getList().addAll(getNumElements() / 2, createDisjointCollection()));
        expectAdded(getNumElements() / 2, createDisjointCollection());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_end() {
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_supportedNonePresent() {
        putAll(createDisjointCollection());
        expectAdded(e3(), e4());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        try {
          putAll(createDisjointCollection());
          fail("putAll(nonePresent) should throw");
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        assertTrue(
            "addAll(nonePresent) should return true", collection.addAll(createDisjointCollection()));
        expectAdded(e3(), e4());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNonePresent() {
        try {
          collection.addAll(createDisjointCollection());
          fail("addAll(nonePresent) should throw");
        } catch (UnsupportedOperationException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_supportedNonePresent() {
        putAll(createDisjointCollection());
        expectAdded(e3(), e4());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        try {
          putAll(createDisjointCollection());
          fail("putAll(nonePresent) should throw");
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        assertTrue(
            "addAll(nonePresent) should return true", collection.addAll(createDisjointCollection()));
        expectAdded(e3(), e4());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNonePresent() {
        try {
          collection.addAll(createDisjointCollection());
          fail("addAll(nonePresent) should throw");
        } catch (UnsupportedOperationException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       *     that involve a null element being present.
       */
      protected int getNullLocation() {
        return getNumElements() / 2;
      }
    
      protected MinimalCollection<E> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected MinimalCollection<E> emptyCollection() {
        return MinimalCollection.<E>of();
      }
    
      protected final E e0() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          assertFalse(message, getMap().containsValue(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       *     that involve a null element being present.
       */
      protected int getNullLocation() {
        return getNumElements() / 2;
      }
    
      protected MinimalCollection<E> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected MinimalCollection<E> emptyCollection() {
        return MinimalCollection.<E>of();
      }
    
      protected final E e0() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          assertFalse(message, getMap().containsValue(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top