- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for getNumElements (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
array[getNumElements()]); // array[getNumElements() + 1] might or might not have been nulled } @CollectionFeature.Require(KNOWN_ORDER) public void testToArray_oversizedArray_ordered() { E[] array = getSubjectGenerator().createArray(getNumElements() + 2); array[getNumElements()] = e3(); array[getNumElements() + 1] = e3(); assertSame(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java
public void testAddAtIndex_middle() { getList().add(getNumElements() / 2, e3()); expectAdded(getNumElements() / 2, e3()); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testAddAtIndex_end() { getList().add(getNumElements(), e3()); expectAdded(getNumElements(), e3()); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
public void testSizeNullKey() { initMultimapWithNullKey(); assertEquals(getNumElements(), multimap().size()); assertFalse(multimap().isEmpty()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(ALLOWS_NULL_VALUES) public void testSizeNullValue() { initMultimapWithNullValue(); assertEquals(getNumElements(), multimap().size()); assertFalse(multimap().isEmpty()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
protected int getNumElements() { return getSubjectGenerator().getCollectionSize().getNumElements(); } protected Collection<E> getSampleElements(int howMany) { return getSubjectGenerator().getSampleElements(howMany); } protected Collection<E> getSampleElements() { return getSampleElements(getNumElements()); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
public void testPutEmpty() { int size = getNumElements(); assertGet(k3(), ImmutableList.<V>of()); assertTrue(multimap().put(k3(), v3())); assertGet(k3(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutPresent() { int size = getNumElements(); assertGet(k0(), v0());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
public void testPutEmpty() { int size = getNumElements(); assertGet(k3(), ImmutableList.<V>of()); assertTrue(multimap().put(k3(), v3())); assertGet(k3(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutPresent() { int size = getNumElements(); assertGet(k0(), v0());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
getList(), getList().subList(0, getNumElements())); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testSubList_subListRemoveAffectsOriginal() { List<E> subList = getList().subList(0, 1); subList.remove(0); List<E> expected = asList(createSamplesArray()).subList(1, getNumElements()); expectContents(expected); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
public void testSizeNullKey() { initMultimapWithNullKey(); assertEquals(getNumElements(), multimap().size()); assertFalse(multimap().isEmpty()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(ALLOWS_NULL_VALUES) public void testSizeNullValue() { initMultimapWithNullValue(); assertEquals(getNumElements(), multimap().size()); assertFalse(multimap().isEmpty()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
protected int getNumElements() { return getSubjectGenerator().getCollectionSize().getNumElements(); } protected Collection<E> getSampleElements(int howMany) { return getSubjectGenerator().getSampleElements(howMany); } protected Collection<E> getSampleElements() { return getSampleElements(getNumElements()); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
} public void testListIterator_tooHigh() { assertThrows( IndexOutOfBoundsException.class, () -> getList().listIterator(getNumElements() + 1)); } public void testListIterator_atSize() { assertNotNull(getList().listIterator(getNumElements())); // TODO: run the iterator through ListIteratorTester } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5K bytes - Viewed (0)