@CheckReturnValue
Package com.google.common.collect.testing.google
-
Interface Summary Interface Description TestBiMapGenerator<K,V> Creates bimaps, containing sample entries, to be tested.TestListMultimapGenerator<K,V> A generator forListMultimap
implementations based on test data.TestMultimapGenerator<K,V,M extends com.google.common.collect.Multimap<K,V>> Creates multimaps, containing sample elements, to be tested.TestMultisetGenerator<E> Creates multisets, containing sample elements, to be tested.TestSetMultimapGenerator<K,V> A generator forSetMultimap
implementations based on test data. -
Class Summary Class Description AbstractBiMapTester<K,V> Skeleton for a tester of aBiMap
.AbstractListMultimapTester<K,V> Superclass for allListMultimap
testers.AbstractMultimapTester<K,V,M extends com.google.common.collect.Multimap<K,V>> Superclass for allMultimap
testers.AbstractMultisetSetCountTester<E> Common superclass forMultisetSetCountUnconditionallyTester
andMultisetSetCountConditionallyTester
.AbstractMultisetTester<E> 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.BiMapGenerators Generators of variousBiMap
s and derived collections.BiMapGenerators.ImmutableBiMapCopyOfEntriesGenerator BiMapGenerators.ImmutableBiMapCopyOfGenerator BiMapGenerators.ImmutableBiMapGenerator BiMapInverseTester<K,V> Tests for theinverse
view of a BiMap.BiMapPutTester<K,V> Tester forBiMap.put
andBiMap.forcePut
.BiMapRemoveTester<K,V> Tester forBiMap.remove
.BiMapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests aBiMap
implementation.DerivedGoogleCollectionGenerators Derived suite generators for Guava collection interfaces, split out of the suite builders so that they are available to GWT.DerivedGoogleCollectionGenerators.BiMapValueSetGenerator<K,V> DerivedGoogleCollectionGenerators.InverseBiMapGenerator<K,V> DerivedGoogleCollectionGenerators.MapGenerator<K,V> ListGenerators Common generators of different types of lists.ListGenerators.BuilderAddAllListGenerator ListGenerators.BuilderAddListGenerator ListGenerators.BuilderReversedListGenerator ListGenerators.CharactersOfCharSequenceGenerator ListGenerators.CharactersOfStringGenerator ListGenerators.ImmutableListHeadSubListGenerator ListGenerators.ImmutableListMiddleSubListGenerator ListGenerators.ImmutableListOfGenerator ListGenerators.ImmutableListTailSubListGenerator ListGenerators.UnhashableElementsImmutableListGenerator ListMultimapAsMapTester<K,V> Testers forListMultimap.asMap()
.ListMultimapEqualsTester<K,V> Testers forListMultimap.equals(Object)
.ListMultimapPutAllTester<K,V> Testers forMultimap.putAll(Object, Iterable)
.ListMultimapPutTester<K,V> Testers forMultimap.put(Object, Object)
.ListMultimapRemoveTester<K,V> Testers forMultimap.remove(Object, Object)
.ListMultimapReplaceValuesTester<K,V> Testers forListMultimap.replaceValues(Object, Iterable)
.ListMultimapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests aListMultimap
implementation.MapGenerators Generators of different types of map and related collections, such as keys, entries and values.MapGenerators.ImmutableEnumMapGenerator MapGenerators.ImmutableMapCopyOfEntriesGenerator MapGenerators.ImmutableMapCopyOfEnumMapGenerator MapGenerators.ImmutableMapCopyOfGenerator MapGenerators.ImmutableMapEntryListGenerator MapGenerators.ImmutableMapGenerator MapGenerators.ImmutableMapKeyListGenerator MapGenerators.ImmutableMapUnhashableValuesGenerator MapGenerators.ImmutableMapValueListGenerator MapGenerators.ImmutableMapValuesAsSingletonSetGenerator MultimapAsMapGetTester<K,V> Tests forMultimap.asMap().get(Object)
.MultimapAsMapTester<K,V> Tests forMultimap.asMap()
.MultimapClearTester<K,V> Tests forMultimap.clear()
.MultimapContainsEntryTester<K,V> Tester forMultimap.containsEntry(java.lang.Object, java.lang.Object)
.MultimapContainsKeyTester<K,V> Tester for thecontainsKey
methods ofMultimap
and itsasMap()
view.MultimapContainsValueTester<K,V> Tester forMultimap.containsValue(java.lang.Object)
.MultimapEntriesTester<K,V> Tester forMultimap.entries
.MultimapEqualsTester<K,V> Tester forMultimap.equals
.MultimapGetTester<K,V> Tests forMultimap.get(Object)
.MultimapKeySetTester<K,V> Tester forMultimap.keySet
.MultimapKeysTester<K,V> Tester forMultimap.entries
.MultimapPutAllMultimapTester<K,V> Tester forMultimap.putAll(Multimap)
.MultimapPutIterableTester<K,V> Tests forMultimap.putAll(Object, Iterable)
.MultimapPutTester<K,V> Tester forMultimap.put(K, V)
.MultimapRemoveAllTester<K,V> Tests forMultimap.removeAll(Object)
.MultimapRemoveEntryTester<K,V> Tests forMultimap.remove(Object, Object)
.MultimapReplaceValuesTester<K,V> Tests forMultimap.replaceValues(Object, Iterable)
.MultimapSizeTester<K,V> Tester for thesize
methods ofMultimap
and its views.MultimapTestSuiteBuilder<K,V,M extends com.google.common.collect.Multimap<K,V>> Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultimap
implementation.MultimapToStringTester<K,V> Tester forMultimap.toString()
.MultimapValuesTester<K,V> Tester forMultimap.values
.MultisetAddTester<E> Tests forMultiset.add
.MultisetContainsTester<E> Tests forMultiset.containsAll
not already addressed byCollectionContainsTester
.MultisetCountTester<E> Tests forMultiset#count
.MultisetElementSetTester<E> Tests forMultiset.elementSet()
not covered by the derivedSetTestSuiteBuilder
.MultisetEntrySetTester<E> Tests forMultiset.entrySet
.MultisetEqualsTester<E> Tests forMultiset.equals
andMultiset.hashCode
.MultisetIteratorTester<E> Tester to make sure theiterator().remove()
implementation ofMultiset
works when there are multiple occurrences of elements.MultisetNavigationTester<E> Tester for navigation of SortedMultisets.MultisetReadsTester<E> A generic JUnit test which tests multiset-specific read operations.MultisetRemoveTester<E> Tests forMultiset#remove
,Multiset.removeAll
, andMultiset.retainAll
not already covered by the corresponding Collection testers.MultisetSerializationTester<E> A generic JUnit test which tests multiset-specific serialization.MultisetSetCountConditionallyTester<E> A generic JUnit test which tests conditionalsetCount()
operations on a multiset.MultisetSetCountUnconditionallyTester<E> A generic JUnit test which tests unconditionalsetCount()
operations on a multiset.MultisetTestSuiteBuilder<E> Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultiset
implementation.SetGenerators Generators of different types of sets and derived collections from sets.SetGenerators.ContiguousSetDescendingGenerator SetGenerators.ContiguousSetGenerator SetGenerators.ContiguousSetHeadsetGenerator SetGenerators.ContiguousSetSubsetGenerator SetGenerators.ContiguousSetTailsetGenerator SetGenerators.DegeneratedImmutableSetGenerator SetGenerators.ImmutableSetAsListGenerator SetGenerators.ImmutableSetCopyOfGenerator SetGenerators.ImmutableSetSizedBuilderGenerator SetGenerators.ImmutableSetTooBigBuilderGenerator SetGenerators.ImmutableSetTooSmallBuilderGenerator SetGenerators.ImmutableSetUnsizedBuilderGenerator SetGenerators.ImmutableSetWithBadHashesGenerator SetGenerators.ImmutableSortedSetAsListGenerator SetGenerators.ImmutableSortedSetAsListSubListGenerator SetGenerators.ImmutableSortedSetCopyOfGenerator SetGenerators.ImmutableSortedSetDescendingAsListGenerator SetGenerators.ImmutableSortedSetDescendingGenerator SetGenerators.ImmutableSortedSetExplicitComparator SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator SetGenerators.ImmutableSortedSetHeadsetGenerator SetGenerators.ImmutableSortedSetReversedOrderGenerator SetGenerators.ImmutableSortedSetSubsetAsListGenerator SetGenerators.ImmutableSortedSetSubsetAsListSubListGenerator SetGenerators.ImmutableSortedSetSubsetGenerator SetGenerators.ImmutableSortedSetTailsetGenerator SetGenerators.ImmutableSortedSetUnhashableGenerator SetGenerators.TestUnhashableSetGenerator SetMultimapAsMapTester<K,V> Testers forSetMultimap.asMap()
.SetMultimapEqualsTester<K,V> Testers forSetMultimap.equals(Object)
.SetMultimapPutAllTester<K,V> Tests forSetMultimap.replaceValues(K, java.lang.Iterable<? extends V>)
.SetMultimapPutTester<K,V> Tests forSetMultimap.replaceValues(K, java.lang.Iterable<? extends V>)
.SetMultimapReplaceValuesTester<K,V> Tests forSetMultimap.replaceValues(K, java.lang.Iterable<? extends V>)
.SetMultimapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests aSetMultimap
implementation.SortedMapGenerators Generators of sorted maps and derived collections.SortedMapGenerators.ImmutableSortedMapCopyOfEntriesGenerator SortedMapGenerators.ImmutableSortedMapEntryListGenerator SortedMapGenerators.ImmutableSortedMapGenerator SortedMapGenerators.ImmutableSortedMapKeyListGenerator SortedMapGenerators.ImmutableSortedMapValueListGenerator SortedMultisetTestSuiteBuilder<E> Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedMultiset
implementation.SortedSetMultimapAsMapTester<K,V> Testers forSortedSetMultimap.asMap()
.SortedSetMultimapGetTester<K,V> Tester forSortedSetMultimap.get(Object)
.SortedSetMultimapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedSetMultimap
implementation.TestEnumMultisetGenerator An abstractTestMultisetGenerator
for generating multisets containing enum values.TestStringBiMapGenerator Implementation helper forTestBiMapGenerator
for use with bimaps of strings.TestStringListMultimapGenerator A skeleton generator for aListMultimap
implementation.TestStringMultisetGenerator Create multisets of strings for tests.TestStringSetMultimapGenerator A skeleton generator for aSetMultimap
implementation.UnmodifiableCollectionTests A series of tests that support asserting that collections cannot be modified, either through direct or indirect means. -
Enum Summary Enum Description MultimapFeature Optional features of classes derived fromMultimap
.MultisetFeature Optional features of classes derived fromMultiset
.MultisetTestSuiteBuilder.NoRecurse -
Annotation Types Summary Annotation Type Description MultimapFeature.Require MultisetFeature.Require