Package | Description |
---|---|
com.google.common.testing |
This package contains testing utilities.
|
Class and Description |
---|
AbstractPackageSanityTests.Chopper |
ArbitraryInstances.AlwaysEqual |
ArbitraryInstances.ByToString |
ArbitraryInstances.NullByteSink |
ClassSanityTester
Tester that runs automated sanity tests for any given class.
|
ClassSanityTester.FactoryMethodReturnsNullException
Thrown if the test tries to invoke a static factory method to test instance methods but the
factory returned null.
|
ClassSanityTester.FactoryMethodReturnValueTester
Runs sanity tests against return values of static factory methods declared by a class.
|
ClassSanityTester.ParameterHasNoDistinctValueException
Thrown if the test fails to generate two distinct non-null values of a constructor or factory
parameter in order to test
Object.equals(java.lang.Object) and Object.hashCode() of the declaring
class. |
ClassSanityTester.ParameterNotInstantiableException
Thrown if the test tries to invoke a constructor or static factory method but failed because
the dummy value of a constructor or method parameter is unknown.
|
CollectorTester
Tester for
Collector implementations. |
CollectorTester.CollectStrategy
Different orderings for combining the elements of an input array, which must all produce the
same result.
|
DummyProxy
Generates a dummy interface proxy that simply returns a dummy value for each method.
|
EqualsTester
Tester for equals() and hashCode() methods of a class.
|
EqualsTester.NotAnInstance
Class used to test whether equals() correctly handles an instance of an incompatible class.
|
EquivalenceTester
Tester for
Equivalence relationships between groups of objects. |
FakeTicker
A Ticker whose value can be advanced programmatically in test.
|
ForwardingWrapperTester
Tester to ensure forwarding wrapper works by delegating calls to the corresponding method with
the same parameters forwarded and return value forwarded back or exception propagated as is.
|
FreshValueGenerator
Generates fresh instances of types that are different from each other (if possible).
|
FreshValueGenerator.Empty
Annotates a method to generate the "empty" instance of a collection.
|
FreshValueGenerator.Generates
Annotates a method to be the instance generator of a certain type.
|
GcFinalization.FinalizationPredicate
A predicate that is expected to return true subsequent to finalization, that is, one
of the following actions taken by the garbage collector when performing a full collection in
response to
System.gc() :
invoking the finalize methods of unreachable objects
clearing weak references to unreachable referents
enqueuing weak references to unreachable referents in their reference queue
|
NullPointerTester
A test utility that verifies that your methods and constructors throw
NullPointerException or UnsupportedOperationException whenever null is passed to a
parameter whose declaration or type isn't annotated with an annotation with the simple name
Nullable , CheckForNull , NullableType , or NullableDecl . |
NullPointerTester.ExceptionTypePolicy
Strategy for exception type matching used by
NullPointerTester . |
NullPointerTester.Visibility
Visibility of any method or constructor.
|
RelationshipTester
Implementation helper for
EqualsTester and EquivalenceTester that tests for
equivalence classes. |
RelationshipTester.Item |
RelationshipTester.ItemReporter |
TearDown
An object that can perform a
TearDown.tearDown() operation. |
TearDownAccepter
Any object which can accept registrations of
TearDown instances. |