Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for initCollectionWithNullElement (0.2 sec)

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

      public void testFind_nonNullWhenNullContained() {
        initCollectionWithNullElement();
        assertEquals(getMethodName() + "(notPresent) should return -1", -1, find(e3()));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testFind_nullContained() {
        initCollectionWithNullElement();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java

      public void testContains_nonNullWhenNullContained() {
        initCollectionWithNullElement();
        assertFalse("contains(notPresent) should return false", collection.contains(e3()));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testContains_nullContained() {
        initCollectionWithNullElement();
        assertTrue("contains(null) should return true", collection.contains(null));
    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/testers/AbstractListIndexOfTester.java

      public void testFind_nonNullWhenNullContained() {
        initCollectionWithNullElement();
        assertEquals(getMethodName() + "(notPresent) should return -1", -1, find(e3()));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testFind_nullContained() {
        initCollectionWithNullElement();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveAll_containsNullYes() {
        initCollectionWithNullElement();
        assertTrue("removeAll(containsNull) should return true", collection.removeAll(singleton(null)));
        // TODO: make this work with MinimalCollection
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    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. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      public void testRemove_nullPresent() {
        initCollectionWithNullElement();
        assertEquals(1, getMultiset().remove(null, 2));
        assertFalse(
            "multiset contains present after multiset.remove(present, 2)",
            getMultiset().contains(null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

      protected E[] createArrayWithNullElement() {
        E[] array = createSamplesArray();
        array[getNullLocation()] = null;
        return array;
      }
    
      protected void initCollectionWithNullElement() {
        E[] array = createArrayWithNullElement();
        resetContainer(getSubjectGenerator().create(array));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
        initCollectionWithNullElement();
        testToString_minimal();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
        initCollectionWithNullElement();
        testToString_minimal();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAll_nullPresent() {
        initCollectionWithNullElement();
        assertTrue(collection.containsAll(MinimalCollection.of((E) null)));
      }
    
      public void testContainsAll_wrongType() {
        Collection<WrongType> wrong = MinimalCollection.of(WrongType.VALUE);
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testCount_nullPresent() {
        initCollectionWithNullElement();
        assertEquals(1, getMultiset().count(null));
      }
    
      public void testCount_wrongType() {
        assertEquals(
            "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top