public class SpecRunnerStatement
extends org.junit.runners.model.Statement
| Modifier and Type | Field and Description |
|---|---|
protected File |
input
The input file.
|
protected Object |
instance
The test instance.
|
protected List<INodeListener> |
listeners
Listener to activate.
|
protected File |
output
The output file.
|
protected org.junit.runners.model.TestClass |
test
The test class.
|
| Constructor and Description |
|---|
SpecRunnerStatement(org.junit.runners.model.TestClass test,
Object instance,
List<INodeListener> listeners)
The testing object.
|
| Modifier and Type | Method and Description |
|---|---|
protected IConfiguration |
configure(IConfiguration cfg)
Set configuration.
|
void |
evaluate() |
protected File |
getInput(Class<?> clazz)
Get input file name.
|
protected ExpectedMessages |
getMessages()
Get expected messages if any.
|
File |
getOutput()
Get the output file.
|
protected File |
getOutput(Class<?> clazz)
Get output file name.
|
String |
getOutputName(String name)
Get the output name adjusted.
|
protected org.junit.runners.model.TestClass test
protected Object instance
protected File input
protected File output
protected List<INodeListener> listeners
public SpecRunnerStatement(org.junit.runners.model.TestClass test,
Object instance,
List<INodeListener> listeners)
test - The test meta-data.instance - The test instance.listeners - The listeners to activate.protected File getInput(Class<?> clazz)
clazz - The class.protected File getOutput(Class<?> clazz)
clazz - The class.public File getOutput()
public void evaluate()
throws Throwable
evaluate in class org.junit.runners.model.StatementThrowableprotected ExpectedMessages getMessages()
protected IConfiguration configure(IConfiguration cfg) throws Throwable
cfg - The configuration.Throwable - On configuration errors.Copyright © 2016. All rights reserved.