public abstract class AssertionTraceObserver<T extends OutputTraceEntry> extends ExecutionObserver
Abstract AssertionTraceObserver class.
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
Constant
logger |
protected OutputTrace<T> |
trace |
currentTest, WRAPPER_TYPES| Constructor and Description |
|---|
AssertionTraceObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
beforeStatement(Statement statement,
Scope scope)
Called immediately before a statement is executed
|
protected boolean |
checkThread() |
void |
clear()
Need a way to clear previously produced results
|
OutputTrace<T> |
getTrace()
Getter for the field
trace. |
void |
output(int position,
String output)
This is called with the console output of each statement
|
protected abstract void |
visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
visitDependencies(Statement statement,
Scope scope)
visitDependencies
|
protected void |
visitReturnValue(Statement statement,
Scope scope)
visitReturnValue
|
getCurrentTest, getDependentVariables, isWrapperType, setCurrentTest, testExecutionFinishedprotected static final org.slf4j.Logger logger
loggerprotected OutputTrace<T extends OutputTraceEntry> trace
protected boolean checkThread()
public void output(int position,
String output)
output in class ExecutionObserverposition - a int.output - a String object.protected void visitDependencies(Statement statement, Scope scope)
visitDependencies
protected abstract void visit(Statement statement, Scope scope, VariableReference var) throws CodeUnderTestException
visit
statement - a Statement object.scope - a Scope object.var - a VariableReference object.CodeUnderTestExceptionpublic void afterStatement(Statement statement, Scope scope, Throwable exception)
afterStatement in class ExecutionObserverstatement - a Statement object.scope - a Scope object.exception - a Throwable object.public void beforeStatement(Statement statement, Scope scope)
ExecutionObserverbeforeStatement in class ExecutionObserverpublic void clear()
clear in class ExecutionObserverpublic OutputTrace<T> getTrace()
Getter for the field trace.
OutputTrace object.Copyright © 2010–2017 EvoSuite. All rights reserved.