Uses of Class
com.google.common.testing.ClassSanityTester.FactoryMethodReturnValueTester
Packages that use ClassSanityTester.FactoryMethodReturnValueTester
-
Uses of ClassSanityTester.FactoryMethodReturnValueTester in com.google.common.testing
Methods in com.google.common.testing that return ClassSanityTester.FactoryMethodReturnValueTesterModifier and TypeMethodDescriptionClassSanityTester.forAllPublicStaticMethods
(Class<?> cls) Returns an object responsible for performing sanity tests against the return values of all public static methods declared bycls
, excluding superclasses.ClassSanityTester.FactoryMethodReturnValueTester.testEquals()
TestsObject.equals(java.lang.Object)
andObject.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.testEqualsAndSerializable()
Runs equals and serialization test on the return values.ClassSanityTester.FactoryMethodReturnValueTester.testNulls()
Tests null checks against the instance methods of the return values, if any.ClassSanityTester.FactoryMethodReturnValueTester.testSerializable()
Runs serialization test on the return values of the static methods.ClassSanityTester.FactoryMethodReturnValueTester.thatReturn
(Class<?> returnType) Specifies that only the methods that are declared to returnreturnType
or its subtype are tested.