- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for initCollectionWithNullElement (0.29 sec)
-
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));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3.1K bytes - Viewed (0) -
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));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
initCollectionWithNullElement(); expectReturnsFalse(nullSingleton); expectContents(createArrayWithNullElement()); } @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = {ZERO, ONE}) public void testRetainAll_nullSingletonPreviouslySeveralWithNull() { initCollectionWithNullElement(); expectReturnsTrue(nullSingleton);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 10.5K bytes - Viewed (0) -
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(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 3.2K bytes - Viewed (0) -
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(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
initCollectionWithNullElement(); expectReturnsFalse(nullSingleton); expectContents(createArrayWithNullElement()); } @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = {ZERO, ONE}) public void testRetainAll_nullSingletonPreviouslySeveralWithNull() { initCollectionWithNullElement(); expectReturnsTrue(nullSingleton);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java
} } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testSpliteratorNullable() { initCollectionWithNullElement(); synchronized (collection) { // for Collections.synchronized assertFalse(collection.spliterator().hasCharacteristics(Spliterator.NONNULL)); } } @CollectionFeature.Require(SUPPORTS_ADD)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4K bytes - Viewed (0) -
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(); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3K bytes - Viewed (0) -
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)); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
} catch (NullPointerException expected) { } } @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));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.4K bytes - Viewed (0)