- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 72 for getNumElements (0.12 sec)
-
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/OneSizeGenerator.java
@Override public E[] createArray(int length) { return generator.createArray(length); } @Override public T createTestSubject() { Collection<E> elements = getSampleElements(getCollectionSize().getNumElements()); return generator.create(elements.toArray()); } @Override public Collection<E> getSampleElements(int howMany) { SampleElements<E> samples = samples(); List<E> allSampleElements =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
this.implied = copyToSet(implied); this.numElements = null; } @Override public Set<Feature<? super Collection>> getImpliedFeatures() { return implied; } public int getNumElements() { if (numElements == null) { throw new IllegalStateException( "A compound CollectionSize doesn't specify a number of elements."); } return numElements; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionSizeTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class CollectionSizeTester<E> extends AbstractCollectionTester<E> { public void testSize() { assertEquals("size():", getNumElements(), collection.size()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 1.3K bytes - Viewed (0) -
android/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) -
guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
return entries; } private void expectFirstRemoved(Entry<K, V>[] entries) { resetMap(entries); List<Entry<K, V>> expectedWithDuplicateRemoved = asList(entries).subList(1, getNumElements()); expectContents(expectedWithDuplicateRemoved); } /** * Returns the {@link Method} instance for {@link #testCreateWithNullKeyUnsupported()} so that
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java
super.setUp(); navigableSet = (NavigableSet<E>) getSet(); values = copyToList( getSubjectGenerator() .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); sort(values, navigableSet.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 - 8.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java
super.setUp(); navigableMap = (NavigableMap<K, V>) getMap(); entries = copyToList( getSubjectGenerator() .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); // some tests assume SEVERAL == 3 if (entries.size() >= 1) { a = entries.get(0); if (entries.size() >= 3) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java
@Override public E[] createArray(int length) { return generator.createArray(length); } @Override public T createTestSubject() { Collection<E> elements = getSampleElements(getCollectionSize().getNumElements()); return generator.create(elements.toArray()); } @Override public Collection<E> getSampleElements(int howMany) { SampleElements<E> samples = samples(); List<E> allSampleElements =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java
@MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutDuplicateValuePreservesSize() { assertFalse(multimap().put(k0(), v0())); assertEquals(getNumElements(), multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) public void testPutDuplicateValue() { List<Entry<K, V>> entries = copyToList(multimap().entries()); for (Entry<K, V> entry : entries) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.7K bytes - Viewed (0)