public abstract class ExecutionObserver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static TestCase |
currentTest
The test case being monitored and executed
|
protected static Set<Class<?>> |
WRAPPER_TYPES
Constant
WRAPPER_TYPES |
| Constructor and Description |
|---|
ExecutionObserver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
abstract void |
beforeStatement(Statement statement,
Scope scope)
Called immediately before a statement is executed
|
abstract void |
clear()
Need a way to clear previously produced results
|
static TestCase |
getCurrentTest()
Getter method for current test case
|
protected Set<VariableReference> |
getDependentVariables(Statement statement)
Determine the set of variables that somehow lead to this statement
|
protected static boolean |
isWrapperType(Class<?> clazz)
isWrapperType
|
abstract void |
output(int position,
String output)
This is called with the console output of each statement
|
static void |
setCurrentTest(TestCase test)
Setter method for current test case
|
abstract void |
testExecutionFinished(ExecutionResult r,
Scope s)
Allow observers to update the execution result at the end the execution of a test.
|
protected static TestCase currentTest
protected static boolean isWrapperType(Class<?> clazz)
isWrapperType
clazz - a Class object.public static void setCurrentTest(TestCase test)
test - a TestCase object.public static TestCase getCurrentTest()
TestCase object.public abstract void output(int position,
String output)
position - a int.output - a String object.public abstract void beforeStatement(Statement statement, Scope scope)
statement - scope - public abstract void afterStatement(Statement statement, Scope scope, Throwable exception)
public abstract void testExecutionFinished(ExecutionResult r, Scope s)
public abstract void clear()
protected Set<VariableReference> getDependentVariables(Statement statement)
Copyright © 2010–2017 EvoSuite. All rights reserved.