- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 72 for getNumElements (0.1 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java
public void testStreamToArrayKnownOrder() { assertEquals(getOrderedElements(), asList(collection.stream().toArray())); } public void testStreamCount() { assertEquals(getNumElements(), collection.stream().count()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 2.3K bytes - Viewed (0) -
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() { getList().listIterator(getNumElements()); // TODO: run the iterator through ListIteratorTester } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java
public class ListReplaceAllTester<E> extends AbstractListTester<E> { @ListFeature.Require(SUPPORTS_SET) public void testReplaceAll() { getList().replaceAll(e -> samples.e3()); expectContents(Collections.nCopies(getNumElements(), samples.e3())); } @ListFeature.Require(SUPPORTS_SET) public void testReplaceAll_changesSome() { getList().replaceAll(e -> e.equals(samples.e0()) ? samples.e3() : e);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
} @ListFeature.Require(SUPPORTS_SET) public void testSet_indexTooLow() { assertThrows(IndexOutOfBoundsException.class, () -> getList().set(-1, e3())); expectUnchanged(); } @ListFeature.Require(SUPPORTS_SET) public void testSet_indexTooHigh() { int index = getNumElements();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java
expectMissing(e0()); } @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) @CollectionSize.Require(absent = ZERO) public void testKeySetIteratorRemove() { int initialSize = getNumElements(); Iterator<K> iterator = getMap().keySet().iterator(); iterator.next(); iterator.remove(); assertEquals(initialSize - 1, getMap().size()); assertEquals(initialSize - 1, getMap().inverse().size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java
public void testGet_negative() { assertThrows(IndexOutOfBoundsException.class, () -> getList().get(-1)); } public void testGet_tooLarge() { assertThrows(IndexOutOfBoundsException.class, () -> getList().get(getNumElements())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 1.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java
super.setUp(); sortedSet = (SortedSet<E>) getSet(); values = copyToList( getSubjectGenerator() .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); sort(values, sortedSet.comparator()); // some tests assume SEVERAL == 3 if (values.size() >= 1) { a = values.get(0); if (values.size() >= 3) { b = values.get(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual); } public void testToArray_largeEnough() { Object[] actual = getList().toArray(new Object[getNumElements()]); assertArrayEquals("toArray(largeEnough) order should match list", createOrderedArray(), actual); } private static void assertArrayEquals(String message, Object[] expected, Object[] actual) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java
} @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testIndexOf_duplicate() { E[] array = createSamplesArray(); array[getNumElements() / 2] = e0(); collection = getSubjectGenerator().create(array); assertEquals( "indexOf(duplicate) should return index of first occurrence", 0, getList().indexOf(e0())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
E[] array = createArrayWithNullElement(); array[0] = null; collection = getSubjectGenerator().create(array); List<E> expectedWithDuplicateRemoved = asList(array).subList(1, getNumElements()); expectContents(expectedWithDuplicateRemoved); } @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE})
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.4K bytes - Viewed (0)