Package com.google.common.collect.testing
@CheckReturnValue
package com.google.common.collect.testing
-
ClassDescriptionAbstractCollectionTester<E extends @Nullable Object>Base class for collection testers.Abstract superclass of all test-suite builders for collection interfaces.AbstractContainerTester<C, E extends @Nullable Object>Base class for testers of classes (including
CollectionandMap) that contain elements.AbstractContainerTester.ArrayWithDuplicate<E extends @Nullable Object>Base class for map testers.This abstract base class for testers allows the framework to inject needed information after JUnit constructs the instances.A sample enumerated type we use for testing.Simple base class to verify that we handle generics correctly.Concrete instantiation ofAbstractCollectionTestSuiteBuilderfor testing collections that do not have a more specific tester likeListTestSuiteBuilderorSetTestSuiteBuilder.Creates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentMap implementation.Creates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentNavigableMap implementation.Derived suite generators, split out of the suite builders so that they are available to GWT.Two bounds (from and to) define how to build a subMap.DerivedCollectionGenerators.MapEntrySetGenerator<K extends @Nullable Object, V extends @Nullable Object>DerivedCollectionGenerators.MapKeySetGenerator<K extends @Nullable Object, V extends @Nullable Object>DerivedCollectionGenerators.MapSortedKeySetGenerator<K extends @Nullable Object, V extends @Nullable Object>DerivedCollectionGenerators.MapValueCollectionGenerator<K extends @Nullable Object, V extends @Nullable Object>DerivedCollectionGenerators.SortedMapSubmapTestMapGenerator<K extends @Nullable Object, V extends @Nullable Object>DerivedCollectionGenerators.SortedSetSubsetTestSetGenerator<E extends @Nullable Object>Simple derived class to verify that we handle generics correctly.A generator that relies on a preexisting generator for most of its work.Adapts a test iterable generator to give a TestIteratorGenerator.Creates, based on your criteria, a JUnit test suite that exhaustively tests the object generated by a G, selecting appropriate tests by matching them against specified features.Compares strings in natural order except that null comes immediately before a given value.A method supported by implementations of theIteratororListIteratorinterface.IteratorTester<E extends @Nullable Object>A utility for testing an Iterator implementation by comparing its behavior to that of a "known good" reference implementation.ListIteratorTester<E extends @Nullable Object>A utility similar toIteratorTesterfor testing aListIteratoragainst a known good reference implementation.Creates, based on your criteria, a JUnit test suite that exhaustively tests a List implementation.Tests representing the contract ofMap.MapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests a Map implementation.MinimalCollection<E extends @Nullable Object>A simplistic collection which implements only the bare minimum allowed by the spec, and throws exceptions whenever it can.MinimalIterable<E extends @Nullable Object>An implementation ofIterablewhich throws an exception on all invocations of theMinimalIterable.iterator()method after the first, and whose iterator is always unmodifiable.MinimalSet<E extends @Nullable Object>A simplistic set which implements the bare minimum so that it can be used in tests without relying on any specific Set implementations.Creates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableMap implementation.Creates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableSet implementation.OneSizeGenerator<T, E extends @Nullable Object>Generator for collection of a particular size.OneSizeTestContainerGenerator<T, E extends @Nullable Object>The subject-generator interface accepted by Collection testers, for testing a Collection at one particularCollectionSize.PerCollectionSizeTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G, T, E>, G extends TestContainerGenerator<T, E>, T, E> This builder creates a composite test suite, containing a separate test suite for eachCollectionSizepresent in the features specified byFeatureSpecificTestSuiteBuilder.withFeatures(Feature...).Creates, based on your criteria, a JUnit test suite that exhaustively tests a queue implementation.Reserializes the sets created by another test set generator.Reserializes the sets created by another test set generator.SafeTreeMap<K,V> A wrapper aroundTreeMapthat aggressively checks to see if keys are mutually comparable.SafeTreeSet<E>A wrapper aroundTreeSetthat aggressively checks to see if elements are mutually comparable.SampleElements<E extends @Nullable Object>A container class for the five sample elements we need for testing.Creates, based on your criteria, a JUnit test suite that exhaustively tests a Set implementation.Tests representing the contract ofSortedMap.Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedMap implementation.Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet implementation.SpliteratorTester<E extends @Nullable Object>Tester forSpliteratorimplementations.Return type from "contains the following elements" assertions.GeneratesList<Character>instances for test suites.TestCollectionGenerator<E extends @Nullable Object>Creates collections, containing sample elements, to be tested.A generator using sample elements whose hash codes all collide badly.TestContainerGenerator<T, E extends @Nullable Object>To be implemented by test generators of things that can contain elements.Implementation helper forTestMapGeneratorfor use with enum maps.An abstract TestSetGenerator for generating sets containing enum values.Create integer sets for collection tests.Create integer sets for testing collections that are sorted by natural ordering.Creates iterators to be tested.TestListGenerator<E extends @Nullable Object>Creates sets, containing sample elements, to be tested.Creates map entries using sample keys and sample values.Creates maps, containing sample elements, to be tested.TestQueueGenerator<E extends @Nullable Object>Creates queues, containing sample elements, to be tested.TestSetGenerator<E extends @Nullable Object>Creates sets, containing sample elements, to be tested.Creates sorted maps, containing sample elements, to be tested.TestSortedSetGenerator<E extends @Nullable Object>Creates sorted sets, containing sample elements, to be tested.String creation for testing arbitrary collections.TODO: javadoc.Implementation helper forTestMapGeneratorfor use with maps of strings.Create queue of strings for tests.Create string sets for collection tests.Implementation helper forTestMapGeneratorfor use with sorted maps of strings.Create string sets for testing collections that are sorted by natural ordering.TestSubjectGenerator<T extends @Nullable Object>To be implemented by test generators that can produce test subjects without requiring any parameters.Creates collections containing unhashable sample elements, to be tested.An unhashable object to be used in testing as values in our collections.A type which will never be used as the element type of any collection in our tests, and so can be used to test how a Collection behaves when given input of the wrong type.