public class TestGenerator extends Object implements SnapshotConsumer
Constructor and Description |
---|
TestGenerator(AgentConfiguration config) |
TestGenerator(PerformanceProfile profile,
TestGeneratorProfile generatorProfile,
List<SetupGenerator> setup,
List<MatcherGenerator> matcher) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ContextSnapshot snapshot) |
TestGenerator |
await() |
void |
clearResults() |
String |
computeClassName(ClassDescriptor clazz) |
static TestGenerator |
fromRecorded() |
ClassGenerator |
generatorFor(ClassDescriptor clazz) |
ClassGenerator |
generatorFor(ContextSnapshot snapshot) |
ClassGenerator |
newGenerator(ClassDescriptor clazz) |
void |
reload(AgentConfiguration config) |
void |
reload(PerformanceProfile profile,
TestGeneratorProfile generatorProfile,
List<SetupGenerator> setup,
List<MatcherGenerator> matcher) |
RenderedTest |
renderTest(Class<?> clazz) |
Set<String> |
testsFor(Class<?> clazz) |
Set<String> |
testsFor(ClassDescriptor clazz) |
void |
writeResults(Path dir) |
public TestGenerator(AgentConfiguration config)
public TestGenerator(PerformanceProfile profile, TestGeneratorProfile generatorProfile, List<SetupGenerator> setup, List<MatcherGenerator> matcher)
public void reload(AgentConfiguration config)
public void reload(PerformanceProfile profile, TestGeneratorProfile generatorProfile, List<SetupGenerator> setup, List<MatcherGenerator> matcher)
public static TestGenerator fromRecorded()
public void accept(ContextSnapshot snapshot)
accept
in interface SnapshotConsumer
public String computeClassName(ClassDescriptor clazz)
public void writeResults(Path dir)
public void clearResults()
public Set<String> testsFor(ClassDescriptor clazz)
public ClassGenerator generatorFor(ContextSnapshot snapshot)
public ClassGenerator generatorFor(ClassDescriptor clazz)
public ClassGenerator newGenerator(ClassDescriptor clazz)
public RenderedTest renderTest(Class<?> clazz)
public TestGenerator await()
Copyright © 2020. All rights reserved.