public abstract class TestSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
protected Random |
random |
protected Validator |
validator |
| Constructor and Description |
|---|
TestSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> Set<ConstraintViolation<T>> |
checkValid(T object,
boolean valid) |
static Random |
getRandom(String randomSeed) |
protected String |
readResource(File file)
Read some file in as a UTF-8 encoded string.
|
protected String |
readResource(String path)
Read some classpath resource in as a UTF-8 encoded string.
|
protected String |
readResource(URL url)
Read some URL resource in as a UTF-8 encoded string.
|
void |
seedRandom(String randomSeed) |
void |
setUpValidator() |
protected final Logger log
protected Validator validator
protected Random random
public void setUpValidator()
public void seedRandom(String randomSeed)
protected <T> Set<ConstraintViolation<T>> checkValid(T object, boolean valid)
protected String readResource(File file)
file - file to read fromprotected String readResource(String path)
path - classpath resource to read fromCopyright © 2017. All rights reserved.