public class TestGenerator extends Object implements SnapshotConsumer
| Constructor and Description |
|---|
TestGenerator(Class<? extends Runnable> initializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ContextSnapshot snapshot) |
void |
clearResults() |
String |
computeClassName(Class<?> clazz) |
static TestGenerator |
fromRecorded(Object object) |
String |
generateBefore(List<String> statements) |
String |
renderTest(Class<?> clazz) |
void |
setMatcher(SerializedValueVisitorFactory matcher) |
void |
setSetup(SerializedValueVisitorFactory setup) |
Set<String> |
testsFor(Class<?> clazz) |
void |
writeResults(Path dir) |
public void setSetup(SerializedValueVisitorFactory setup)
public void setMatcher(SerializedValueVisitorFactory matcher)
public void accept(ContextSnapshot snapshot)
accept in interface SnapshotConsumerpublic void writeResults(Path dir)
public void clearResults()
public static TestGenerator fromRecorded(Object object)
Copyright © 2016. All rights reserved.