Uses of Class
com.google.common.testing.ClassSanityTester
-
Packages that use ClassSanityTester Package Description com.google.common.testing This package contains testing utilities. -
-
Uses of ClassSanityTester in com.google.common.testing
Methods in com.google.common.testing that return ClassSanityTester Modifier and Type Method Description <T> ClassSanityTester
ClassSanityTester. setDefault(Class<T> type, T value)
Sets the default value fortype
.<T> ClassSanityTester
ClassSanityTester. setDistinctValues(Class<T> type, T value1, T value2)
Sets distinct values fortype
, so that when a classFoo
is tested forObject.equals(java.lang.Object)
andObject.hashCode()
, and its construction requires a parameter oftype
, the distinct values oftype
can be passed as parameters to createFoo
instances that are unequal.
-