Uses of Package
com.google.common.collect.testing
Packages that use com.google.common.collect.testing
Package
Description
-
Classes in com.google.common.collect.testing used by com.google.common.collect.testingClassDescriptionAbstract superclass of all test-suite builders for collection interfaces.Base class for testers of classes (including
Collection
andMap
) that contain elements.Most of the logic forIteratorTester
andListIteratorTester
.Meta-exception thrown byAbstractIteratorTester.MultiExceptionListIterator
instead of throwing any particular exception type.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 ofAbstractCollectionTestSuiteBuilder
for testing collections that do not have a more specific tester likeListTestSuiteBuilder
orSetTestSuiteBuilder
.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.Two bounds (from and to) define how to build a subMap.A generator that relies on a preexisting generator for most of its work.Marks all "top-level" types as non-null in a way that is recognized by Kotlin.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.Private replacement forinvalid reference
com.google.gwt.user.client.rpc.GwtTransient
Compares strings in natural order except that null comes immediately before a given value.A method supported by implementations of theIterator
orListIterator
interface.Creates, based on your criteria, a JUnit test suite that exhaustively tests a List implementation.Tests representing the contract ofMap
.Creates, based on your criteria, a JUnit test suite that exhaustively tests a Map implementation.A simplistic collection which implements only the bare minimum allowed by the spec, and throws exceptions whenever it can.An implementation ofIterable
which throws an exception on all invocations of theMinimalIterable.iterator()
method after the first, and whose iterator is always unmodifiable.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.The subject-generator interface accepted by Collection testers, for testing a Collection at one particularCollectionSize
.This builder creates a composite test suite, containing a separate test suite for eachCollectionSize
present 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.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.Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedMap implementation.To avoid infinite recursion, test suites with these marker features won't have derived suites created for them.Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet implementation.Tester forSpliterator
implementations.Return type from "contains the following elements" assertions.Different ways of decomposing a Spliterator, all of which must produce the same elements (up to ordering, if Spliterator.ORDERED is not present).Creates collections, containing sample elements, to be tested.To be implemented by test generators of things that can contain elements.Create integer sets for collection tests.Creates iterators to be tested.Creates sets, containing sample elements, to be tested.Creates maps, containing sample elements, to be tested.Creates queues, containing sample elements, to be tested.Creates sets, containing sample elements, to be tested.Creates sorted maps, containing sample elements, to be tested.Creates sorted sets, containing sample elements, to be tested.Implementation helper forTestMapGenerator
for use with maps of strings.Create string sets for collection tests.To be implemented by test generators that can produce test subjects without requiring any parameters.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. -
Classes in com.google.common.collect.testing used by com.google.common.collect.testing.googleClassDescriptionBase class for collection testers.Abstract superclass of all test-suite builders for collection interfaces.Base class for testers of classes (including
Collection
andMap
) that contain elements.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.A generator that relies on a preexisting generator for most of its work.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.The subject-generator interface accepted by Collection testers, for testing a Collection at one particularCollectionSize
.This builder creates a composite test suite, containing a separate test suite for eachCollectionSize
present in the features specified byFeatureSpecificTestSuiteBuilder.withFeatures(Feature...)
.A container class for the five sample elements we need for testing.GeneratesList<Character>
instances for test suites.Creates collections, containing sample elements, to be tested.A generator using sample elements whose hash codes all collide badly.To be implemented by test generators of things that can contain elements.Implementation helper forTestMapGenerator
for use with enum maps.Create integer sets for collection tests.Create integer sets for testing collections that are sorted by natural ordering.Creates sets, containing sample elements, to be tested.Creates maps, containing sample elements, to be tested.Creates sets, containing sample elements, to be tested.Creates sorted maps, containing sample elements, to be tested.Creates sorted sets, containing sample elements, to be tested.TODO: javadoc.Implementation helper forTestMapGenerator
for use with maps of strings.Create string sets for collection tests.Implementation helper forTestMapGenerator
for use with sorted maps of strings.Create string sets for testing collections that are sorted by natural ordering.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. -
Classes in com.google.common.collect.testing used by com.google.common.collect.testing.testersClassDescriptionBase class for collection testers.Base class for testers of classes (including
Collection
andMap
) that contain elements.Base class for map testers.This abstract base class for testers allows the framework to inject needed information after JUnit constructs the instances.A method supported by implementations of theIterator
orListIterator
interface.A container class for the five sample elements we need for testing.