/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultisetEntrySetTester.java | 47 getMultiset().entrySet().clear(); in testEntrySet_clear() 49 getMultiset().isEmpty()); in testEntrySet_clear() 55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); in testEntrySet_iteratorRemovePropagates() 68 getMultiset().isEmpty()); in testEntrySet_iteratorRemovePropagates() 76 getMultiset().entrySet().remove( in testEntrySet_removePresent() 80 getMultiset().contains(samples.e0)); in testEntrySet_removePresent() 88 getMultiset().entrySet().remove( in testEntrySet_removeAbsent() 92 getMultiset().contains(samples.e0)); in testEntrySet_removeAbsent() 100 getMultiset().entrySet().removeAll( in testEntrySet_removeAllPresent() 104 getMultiset().contains(samples.e0)); in testEntrySet_removeAllPresent() [all …]
|
D | MultisetAddTester.java | 37 getMultiset().add(samples.e0); in testAddUnsupported() 44 int originalCount = getMultiset().count(samples.e0); in testAddMeansAddOne() 45 assertTrue(getMultiset().add(samples.e0)); in testAddMeansAddOne() 46 assertEquals(originalCount + 1, getMultiset().count(samples.e0)); in testAddMeansAddOne() 51 int originalCount = getMultiset().count(samples.e0); in testAddOccurrencesZero() 52 assertEquals("old count", originalCount, getMultiset().add(samples.e0, 0)); in testAddOccurrencesZero() 58 int originalCount = getMultiset().count(samples.e0); in testAddOccurrences() 59 assertEquals("old count", originalCount, getMultiset().add(samples.e0, 2)); in testAddOccurrences() 60 assertEquals("old count", originalCount + 2, getMultiset().count(samples.e0)); in testAddOccurrences() 65 int originalCount = getMultiset().count(samples.e0); in testAddSeveralTimes() [all …]
|
D | MultisetRemoveTester.java | 49 getMultiset().remove(samples.e0, -1); in testRemoveNegative() 58 getMultiset().remove(samples.e0, 2); in testRemoveUnsupported() 65 int originalCount = getMultiset().count(samples.e0); in testRemoveZeroNoOp() 66 assertEquals("old count", originalCount, getMultiset().remove(samples.e0, 0)); in testRemoveZeroNoOp() 74 1, getMultiset().remove(samples.e0, 2)); in testRemove_occurrences_present() 76 getMultiset().contains(samples.e0)); in testRemove_occurrences_present() 77 assertEquals(0, getMultiset().count(samples.e0)); in testRemove_occurrences_present() 85 3, getMultiset().remove(samples.e0, 2)); in testRemove_some_occurrences_present() 87 getMultiset().contains(samples.e0)); in testRemove_some_occurrences_present() 88 assertEquals(1, getMultiset().count(samples.e0)); in testRemove_some_occurrences_present() [all …]
|
D | MultisetReadsTester.java | 41 getMultiset().elementSet().contains(samples.e0)); in testElementSet_contains() 47 getMultiset().entrySet().contains( in testEntrySet_contains() 53 getMultiset().entrySet().contains( in testEntrySet_contains_count0() 59 getMultiset().entrySet().contains(samples.e0)); in testEntrySet_contains_nonentry() 64 getMultiset().entrySet(), getMultiset().entrySet()); in testEntrySet_twice() 70 0, getMultiset().entrySet().hashCode()); in testEntrySet_hashCode_size0() 76 1 ^ samples.e0.hashCode(), getMultiset().entrySet().hashCode()); in testEntrySet_hashCode_size1() 81 getMultiset().equals(HashMultiset.create(getSampleElements()))); in testEquals_yes() 88 getMultiset().equals(other)); in testEquals_differentSize() 97 getMultiset().equals(other)); in testEquals_differentElements() [all …]
|
D | MultisetElementSetTester.java | 41 Set<E> elementSet = getMultiset().elementSet(); in testElementSetReflectsAddAbsent() 43 getMultiset().add(samples.e3, 4); in testElementSetReflectsAddAbsent() 50 Set<E> elementSet = getMultiset().elementSet(); in testElementSetReflectsRemove() 52 getMultiset().removeAll(Collections.singleton(samples.e0)); in testElementSetReflectsRemove() 59 Set<E> elementSet = getMultiset().elementSet(); in testElementSetRemovePropagatesToMultiset() 61 assertFalse(getMultiset().contains(samples.e0)); in testElementSetRemovePropagatesToMultiset() 68 Set<E> elementSet = getMultiset().elementSet(); in testElementSetRemoveDuplicatePropagatesToMultiset() 70 assertThat(getMultiset()).isEmpty(); in testElementSetRemoveDuplicatePropagatesToMultiset() 75 Set<E> elementSet = getMultiset().elementSet(); in testElementSetRemoveAbsent() 82 getMultiset().elementSet().clear(); in testElementSetClear() [all …]
|
D | MultisetCountTester.java | 45 0, getMultiset().count(samples.e3)); in testCount_0() 51 1, getMultiset().count(samples.e0)); in testCount_1() 58 3, getMultiset().count(samples.e0)); in testCount_3() 64 0, getMultiset().count(null)); in testCount_nullAbsent() 70 getMultiset().count(null); in testCount_null_forbidden() 79 assertEquals(1, getMultiset().count(null)); in testCount_nullPresent() 84 0, getMultiset().count(WrongType.VALUE)); in testCount_wrongType()
|
D | MultisetSetCountConditionallyTester.java | 49 return getMultiset().setCount(element, getMultiset().count(element), count); in setCount() 54 getMultiset().setCount(samples.e3, -1, 1); in assertSetCountNegativeOldCount() 81 getMultiset().setCount(samples.e0, 2, 3)); in testSetCountConditional_oldCountTooLarge() 89 getMultiset().setCount(samples.e0, 0, 2)); in testSetCountConditional_oldCountTooSmallZero() 98 getMultiset().setCount(samples.e0, 1, 5)); in testSetCountConditional_oldCountTooSmallNonzero()
|
D | MultisetEqualsTester.java | 35 getMultiset(), in testEqualsSameContents() 43 .addEqualityGroup(getMultiset()) in testNotEqualsEmpty() 49 assertEquals(getMultiset().entrySet().hashCode(), getMultiset().hashCode()); in testHashCodeMatchesEntrySet() 56 .addEqualityGroup(getMultiset()) in testEqualsMultisetWithNullValue()
|
D | MultisetSetCountUnconditionallyTester.java | 33 getMultiset().count(element), setCount(element, count)); in setCountCheckReturnValue() 41 return getMultiset().setCount(element, count); in setCount()
|
D | MultisetContainsTester.java | 33 assertTrue(getMultiset() in testContainsAllMultisetIgnoresFrequency() 39 assertTrue(getMultiset().containsAll(Arrays.asList(samples.e0, samples.e0, samples.e0))); in testContainsAllListIgnoresFrequency()
|
D | AbstractMultisetSetCountTester.java | 66 count, getMultiset().count(element)); in assertSetCount() 69 for (Multiset.Entry<E> entry : getMultiset().entrySet()) { in assertSetCount() 74 size, getMultiset().size()); in assertSetCount() 211 Iterator<Entry<E>> iterator = getMultiset().entrySet().iterator(); in testSetCountZeroToOneConcurrentWithEntrySetIteration() 274 Iterator<Entry<E>> iterator = getMultiset().entrySet().iterator(); in testSetCountOneToZeroConcurrentWithEntrySetIteration()
|
D | MultisetSerializationTester.java | 38 Set<Multiset.Entry<E>> expected = getMultiset().entrySet(); in testEntrySetSerialization() 44 Set<E> expected = getMultiset().elementSet(); in testElementSetSerialization()
|
D | AbstractMultisetTester.java | 30 protected final Multiset<E> getMultiset() { in getMultiset() method in AbstractMultisetTester
|
D | MultisetNavigationTester.java | 65 sortedMultiset = cast(getMultiset()); in setUp() 91 sortedMultiset = (SortedMultiset<E>) getMultiset(); in resetWithHole()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/ |
D | MultisetRemoveTester.java | 46 getMultiset().remove(samples.e0, -1); in testRemoveNegative() 55 getMultiset().remove(samples.e0, 2); in testRemoveUnsupported() 62 int originalCount = getMultiset().count(samples.e0); in testRemoveZeroNoOp() 63 assertEquals("old count", originalCount, getMultiset().remove(samples.e0, 0)); in testRemoveZeroNoOp() 71 1, getMultiset().remove(samples.e0, 2)); in testRemove_occurrences_present() 73 getMultiset().contains(samples.e0)); in testRemove_occurrences_present() 74 assertEquals(0, getMultiset().count(samples.e0)); in testRemove_occurrences_present() 82 3, getMultiset().remove(samples.e0, 2)); in testRemove_some_occurrences_present() 84 getMultiset().contains(samples.e0)); in testRemove_some_occurrences_present() 85 assertEquals(1, getMultiset().count(samples.e0)); in testRemove_some_occurrences_present() [all …]
|
D | MultisetCountTester.java | 39 0, getMultiset().count(samples.e3)); in testCount_0() 45 1, getMultiset().count(samples.e0)); in testCount_1() 52 3, getMultiset().count(samples.e0)); in testCount_3() 58 0, getMultiset().count(null)); in testCount_nullAbsent() 64 getMultiset().count(null); in testCount_null_forbidden() 73 assertEquals(1, getMultiset().count(null)); in testCount_nullPresent() 78 0, getMultiset().count(WrongType.VALUE)); in testCount_wrongType()
|
D | AbstractMultisetSetCountTester.java | 61 count, getMultiset().count(element)); in assertSetCount() 64 for (Multiset.Entry<E> entry : getMultiset().entrySet()) { in assertSetCount() 69 size, getMultiset().size()); in assertSetCount() 206 Iterator<Entry<E>> iterator = getMultiset().entrySet().iterator(); in testSetCountZeroToOneConcurrentWithEntrySetIteration() 269 Iterator<Entry<E>> iterator = getMultiset().entrySet().iterator(); in testSetCountOneToZeroConcurrentWithEntrySetIteration()
|