public class ModelTester<T>
extends java.lang.Object
| Constructor and Description |
|---|
ModelTester(java.lang.Class<T> modelClass) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ModelTester<T> |
allOf(java.lang.Class<T> modelClass) |
ModelTester<T> |
constructor(Creator<?>... parameters) |
ModelTester<T> |
constructor(java.lang.Object... parameters)
Should test a constructor with parameters.
|
ModelTester<T> |
constructors()
Should test all constructors.
|
ModelTester<T> |
equalsMethod()
Should test equals() method
|
ModelTester<T> |
equalsSafe()
Test equals() but compare with itself
|
ModelTester<T> |
exclude(java.lang.String... names)
Except for the getter setter methods listed.
|
ModelTester<T> |
getterSetters()
Should test all getter and setter methods.
|
ModelTester<T> |
hashCodeMethod()
Should test hashCode() method
|
ModelTester<T> |
hashCodeSafe()
Test hashCode() but compare with itself
|
ModelTester<T> |
include(java.lang.String... names)
Only getters setters are listed.
|
static <T> ModelTester<T> |
of(java.lang.Class<T> modelClass) |
static <T> ModelTester<T> |
safeOf(java.lang.Class<T> modelClass) |
boolean |
test()
Start testing
|
void |
testAndThrows()
Start testing and throws Exception if there is any error.
|
ModelTester<T> |
toStringMethod()
Should test toString() method
|
ModelTester<T> |
toStringSafe()
Test toString() but compare with itself
|
public ModelTester(java.lang.Class<T> modelClass)
public static <T> ModelTester<T> of(java.lang.Class<T> modelClass)
public static <T> ModelTester<T> allOf(java.lang.Class<T> modelClass)
public static <T> ModelTester<T> safeOf(java.lang.Class<T> modelClass)
public ModelTester<T> constructors()
public ModelTester<T> constructor(java.lang.Object... parameters)
public ModelTester<T> constructor(Creator<?>... parameters)
public ModelTester<T> getterSetters()
public ModelTester<T> include(java.lang.String... names)
public ModelTester<T> exclude(java.lang.String... names)
public ModelTester<T> equalsMethod()
public ModelTester<T> equalsSafe()
public ModelTester<T> hashCodeMethod()
public ModelTester<T> hashCodeSafe()
public ModelTester<T> toStringMethod()
public ModelTester<T> toStringSafe()
public boolean test()
public void testAndThrows()