| 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. |
Copyright © 2010–2019. All rights reserved.