Package com.google.common.collect.testing.google
package com.google.common.collect.testing.google
-
ClassDescriptionAbstractBiMapTester<K,
V> Skeleton for a tester of aBiMap
.Superclass for allListMultimap
testers.AbstractMultimapTester<K,V, M extends Multimap<K, V>> Superclass for allMultimap
testers.Common superclass forMultisetSetCountUnconditionallyTester
andMultisetSetCountConditionallyTester
.Base class for multiset collection tests.BiMapClearTester<K,V> Tester forBiMap.clear
.BiMapEntrySetTester<K,V> Tester forBiMap.entrySet
and methods on the entries in the set.Generators of variousBiMap
s and derived collections.BiMapInverseTester<K,V> Tests for theinverse
view of a BiMap.BiMapPutTester<K,V> Tester forBiMap.put
andBiMap.forcePut
.BiMapRemoveTester<K,V> Tester forBiMap.remove
.Creates, based on your criteria, a JUnit test suite that exhaustively tests aBiMap
implementation.Derived suite generators for Guava collection interfaces, split out of the suite builders so that they are available to GWT.Marks all "top-level" types as non-null in a way that is recognized by Kotlin.Helper methods/assertions for use withcom.google.common.collect
types.Common generators of different types of lists.Testers forListMultimap.asMap()
.Testers forListMultimap.equals(Object)
.Testers forMultimap.putAll(Object, Iterable)
.Testers forMultimap.put(Object, Object)
.Testers forMultimap.remove(Object, Object)
.Testers forListMultimap.replaceValues(Object, Iterable)
.Creates, based on your criteria, a JUnit test suite that exhaustively tests aListMultimap
implementation.Generators of different types of map and related collections, such as keys, entries and values.Tests forMultimap.asMap().get(Object)
.MultimapAsMapTester<K,V> Tests forMultimap.asMap()
.MultimapClearTester<K,V> Tests forMultimap.clear()
.Tester for thecontainsKey
methods ofMultimap
and itsasMap()
view.Tester forMultimap.containsValue(java.lang.Object)
.Tester forMultimap.entries
.MultimapEqualsTester<K,V> Tester forMultimap.equals
.Optional features of classes derived fromMultimap
.MultimapGetTester<K,V> Tests forMultimap.get(Object)
.MultimapKeySetTester<K,V> Tester forMultimap.keySet
.MultimapKeysTester<K,V> Tester forMultimap.entries
.Tester forMultimap.putAll(Multimap)
.Tests forMultimap.putAll(Object, Iterable)
.MultimapPutTester<K,V> Tester forMultimap.put(K, V)
.Tests forMultimap.removeAll(Object)
.Tests forMultimap.remove(Object, Object)
.Tests forMultimap.replaceValues(Object, Iterable)
.MultimapSizeTester<K,V> Tester for thesize
methods ofMultimap
and its views.MultimapTestSuiteBuilder<K,V, M extends Multimap<K, V>> Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultimap
implementation.MultimapTestSuiteBuilder.AsMapGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.EntriesGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.KeysGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.MultimapAsMapGetGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.MultimapGetGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.ReserializedMultimapGenerator<K,V, M extends Multimap<K, V>> MultimapTestSuiteBuilder.ValuesGenerator<K,V, M extends Multimap<K, V>> Tester forMultimap.toString()
.MultimapValuesTester<K,V> Tester forMultimap.values
.Tests forMultiset.add
.Tests forMultiset.containsAll
not already addressed byCollectionContainsTester
.Tests forMultiset#count
.Tests forMultiset.elementSet()
not covered by the derivedSetTestSuiteBuilder
.Tests forMultiset.entrySet
.Tests forMultiset.equals
andMultiset.hashCode
.Optional features of classes derived fromMultiset
.Tests forMultiset#forEachEntry
.Tester to make sure theiterator().remove()
implementation ofMultiset
works when there are multiple occurrences of elements.Tester for navigation of SortedMultisets.A generic JUnit test which tests multiset-specific read operations.Tests forMultiset#remove
,Multiset.removeAll
, andMultiset.retainAll
not already covered by the corresponding Collection testers.A generic JUnit test which tests multiset-specific serialization.A generic JUnit test which tests conditionalsetCount()
operations on a multiset.A generic JUnit test which tests unconditionalsetCount()
operations on a multiset.Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultiset
implementation.Generators of different types of sets and derived collections from sets.Testers forSetMultimap.asMap()
.Testers forSetMultimap.equals(Object)
.SetMultimapPutTester<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests aSetMultimap
implementation.Generators of sorted maps and derived collections.Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedMultiset
implementation.Two bounds (from and to) define how to build a subMultiset.To avoid infinite recursion, test suites with these marker features won't have derived suites created for them.Testers forSortedSetMultimap.asMap()
.Tester forSortedSetMultimap.get(Object)
.Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedSetMultimap
implementation.TestBiMapGenerator<K,V> Creates bimaps, containing sample entries, to be tested.An abstractTestMultisetGenerator
for generating multisets containing enum values.A generator forListMultimap
implementations based on test data.TestMultimapGenerator<K,V, M extends Multimap<K, V>> Creates multimaps, containing sample elements, to be tested.Creates multisets, containing sample elements, to be tested.A generator forSetMultimap
implementations based on test data.Implementation helper forTestBiMapGenerator
for use with bimaps of strings.A skeleton generator for aListMultimap
implementation.Create multisets of strings for tests.A skeleton generator for aSetMultimap
implementation.A series of tests that support asserting that collections cannot be modified, either through direct or indirect means.