@Beta
public abstract class ScenarioProcessor
extends java.lang.Object
processFile(String)
and optionally
preProcess(String)
. The processor instance is created by
the guice injector that is returned by the IInjectorProvider
of the test class.Constructor and Description |
---|
ScenarioProcessor() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
get(java.lang.Class<T> service)
Obtain an instance of the given class from the injector.
|
java.lang.String |
preProcess(java.lang.String data)
Optional pre processing of the input data to reduce the number of permutations.
|
abstract void |
processFile(java.lang.String data)
Implements the smoke test for the given input data.
|
protected <T> T get(java.lang.Class<T> service)
scenarios
to obtain
a resource or a lexer.public java.lang.String preProcess(java.lang.String data)
null
if the data should be skipped. The test will be marked as ignored.public abstract void processFile(java.lang.String data) throws java.lang.Exception
java.lang.Exception