Home
last modified time | relevance | path

Searched refs:getSampleElements (Results 1 – 25 of 50) sorted by relevance

12

/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DAbstractContainerTester.java135 List<E> expected = Helpers.copyToList(getSampleElements()); in expectAdded()
145 List<E> expected = Helpers.copyToList(getSampleElements()); in expectAdded()
164 getSampleElements().toArray(array); in createSamplesArray()
200 protected Collection<E> getSampleElements(int howMany) { in getSampleElements() method in AbstractContainerTester
201 return getSubjectGenerator().getSampleElements(howMany); in getSampleElements()
204 protected Collection<E> getSampleElements() { in getSampleElements() method in AbstractContainerTester
205 return getSampleElements(getNumElements()); in getSampleElements()
215 for (E e : getSubjectGenerator().order(new ArrayList<E>(getSampleElements()))) { in getOrderedElements()
DAbstractMapTester.java90 Iterator<Entry<K, V>> entries = getSampleElements().iterator(); in getEntryNullReplaces()
153 return getSampleElements(howMany); in getSampleEntries()
157 return getSampleElements(); in getSampleEntries()
190 List<Entry<K, V>> expected = Helpers.copyToList(getSampleElements()); in expectReplacement()
DOneSizeGenerator.java63 Collection<E> elements = getSampleElements(getCollectionSize().getNumElements()); in createTestSubject()
68 public Collection<E> getSampleElements(int howMany) { in getSampleElements() method in OneSizeGenerator
DOneSizeTestContainerGenerator.java38 Collection<E> getSampleElements(int howMany); in getSampleElements() method
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DAbstractContainerTester.java135 List<E> expected = Helpers.copyToList(getSampleElements()); in expectAdded()
145 List<E> expected = Helpers.copyToList(getSampleElements()); in expectAdded()
164 getSampleElements().toArray(array); in createSamplesArray()
200 protected Collection<E> getSampleElements(int howMany) { in getSampleElements() method in AbstractContainerTester
201 return getSubjectGenerator().getSampleElements(howMany); in getSampleElements()
204 protected Collection<E> getSampleElements() { in getSampleElements() method in AbstractContainerTester
205 return getSampleElements(getNumElements()); in getSampleElements()
215 for (E e : getSubjectGenerator().order(new ArrayList<E>(getSampleElements()))) { in getOrderedElements()
DAbstractMapTester.java90 Iterator<Entry<K, V>> entries = getSampleElements().iterator(); in getEntryNullReplaces()
153 return getSampleElements(howMany); in getSampleEntries()
157 return getSampleElements(); in getSampleEntries()
190 List<Entry<K, V>> expected = Helpers.copyToList(getSampleElements()); in expectReplacement()
DOneSizeGenerator.java63 Collection<E> elements = getSampleElements(getCollectionSize().getNumElements()); in createTestSubject()
68 public Collection<E> getSampleElements(int howMany) { in getSampleElements() method in OneSizeGenerator
DOneSizeTestContainerGenerator.java38 Collection<E> getSampleElements(int howMany); in getSampleElements() method
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DListEqualsTester.java46 ArrayList<E> other = new ArrayList<>(getSampleElements()); in testEquals_otherListWithDifferentElements()
55 List<E> other = new ArrayList<>(getSampleElements()); in testEquals_otherListContainingNull()
65 ArrayList<E> elements = new ArrayList<>(getSampleElements()); in testEquals_containingNull()
68 List<E> other = new ArrayList<>(getSampleElements()); in testEquals_containingNull()
76 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_shorterList()
83 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_longerList()
DSetEqualsTester.java41 getSet().equals(MinimalSet.from(getSampleElements()))); in testEquals_otherSetWithSameElements()
46 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements()
57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull()
69 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull()
80 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet()
87 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
DSortedMapNavigationTester.java59 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in setUp()
123 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testHeadMap()
135 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testTailMap()
148 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testSubMap()
DSetHashCodeTester.java40 for (E element : getSampleElements()) { in testHashCode()
52 Collection<E> elements = getSampleElements(getNumElements() - 1); in testHashCode_containingNull()
DCollectionIteratorTester.java111 runIteratorTest(MODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements()); in testIterator_unknownOrderRemoveSupported()
116 runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements()); in testIterator_unknownOrderRemoveUnsupported()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DSetEqualsTester.java41 getSet().equals(MinimalSet.from(getSampleElements()))); in testEquals_otherSetWithSameElements()
46 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements()
57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull()
69 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull()
80 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet()
87 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
DListEqualsTester.java46 ArrayList<E> other = new ArrayList<>(getSampleElements()); in testEquals_otherListWithDifferentElements()
55 List<E> other = new ArrayList<>(getSampleElements()); in testEquals_otherListContainingNull()
65 ArrayList<E> elements = new ArrayList<>(getSampleElements()); in testEquals_containingNull()
68 List<E> other = new ArrayList<>(getSampleElements()); in testEquals_containingNull()
76 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_shorterList()
83 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_longerList()
DSortedMapNavigationTester.java59 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in setUp()
123 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testHeadMap()
135 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testTailMap()
148 .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements())); in testSubMap()
DSetHashCodeTester.java40 for (E element : getSampleElements()) { in testHashCode()
52 Collection<E> elements = getSampleElements(getNumElements() - 1); in testHashCode_containingNull()
DCollectionIteratorTester.java111 runIteratorTest(MODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements()); in testIterator_unknownOrderRemoveSupported()
116 runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements()); in testIterator_unknownOrderRemoveUnsupported()
DCollectionStreamTester.java46 getSampleElements(), Arrays.asList(collection.stream().toArray())); in testStreamToArrayUnknownOrder()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetReadsTester.java88 getMultiset().equals(HashMultiset.create(getSampleElements()))); in testEquals_yes()
92 Multiset<E> other = HashMultiset.create(getSampleElements()); in testEquals_differentSize()
99 Multiset<E> other = HashMultiset.create(getSampleElements()); in testEquals_differentElements()
DMultimapForEachTester.java41 assertEqualIgnoringOrder(getSampleElements(), multimap().entries()); in testForEach()
48 assertEqualIgnoringOrder(getSampleElements(), multimap().entries()); in testForEachOrder()
DMultimapEqualsTester.java42 .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) in testEqualsTrue()
47 List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); in testEqualsFalse()
DMultisetEqualsTester.java37 getMultiset(), getSubjectGenerator().create(getSampleElements().toArray())) in testEqualsSameContents()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetReadsTester.java88 getMultiset().equals(HashMultiset.create(getSampleElements()))); in testEquals_yes()
92 Multiset<E> other = HashMultiset.create(getSampleElements()); in testEquals_differentSize()
99 Multiset<E> other = HashMultiset.create(getSampleElements()); in testEquals_differentElements()
DMultimapEqualsTester.java42 .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) in testEqualsTrue()
47 List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); in testEqualsFalse()

12