Package | Description |
---|---|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Method and Description |
---|---|
<T> ClassSanityTester |
ClassSanityTester.setDefault(Class<T> type,
T value)
Sets the default value for
type . |
<T> ClassSanityTester |
ClassSanityTester.setDistinctValues(Class<T> type,
T value1,
T value2)
Sets distinct values for
type , so that when a class Foo is tested for Object.equals(java.lang.Object) and Object.hashCode() , and its construction requires a parameter of type , the distinct values of type can be passed as parameters to create Foo
instances that are unequal. |
<T> ClassSanityTester |
ClassSanityTester.setSampleInstances(Class<T> type,
Iterable<? extends T> instances)
Deprecated.
Use
setDistinctValues(java.lang.Class<T>, T, T) instead. |
Copyright © 2010-2014. All Rights Reserved.