Package | Description |
---|---|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Method and Description |
---|---|
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.forAllPublicStaticMethods(Class<?> cls)
Returns an object responsible for performing sanity tests against the return values
of all public static methods declared by
cls , excluding superclasses. |
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.FactoryMethodReturnValueTester.testEquals()
Tests
Object.equals(java.lang.Object) and Object.hashCode() against the return values of the
static methods, by asserting that when equal parameters are passed to the same static method,
the return value should also be equal; and vice versa. |
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.FactoryMethodReturnValueTester.testEqualsAndSerializable()
Runs equals and serialization test on the return values.
|
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.FactoryMethodReturnValueTester.testNulls()
Tests null checks against the instance methods of the return values, if any.
|
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.FactoryMethodReturnValueTester.testSerializable()
Runs serialization test on the return values of the static methods.
|
ClassSanityTester.FactoryMethodReturnValueTester |
ClassSanityTester.FactoryMethodReturnValueTester.thatReturn(Class<?> returnType)
Specifies that only the methods that are declared to return
returnType or its subtype
are tested. |
Copyright © 2010–2017. All rights reserved.