public class ContractChecker extends ExecutionObserver
ContractChecker class.
currentTest, WRAPPER_TYPES| Constructor and Description |
|---|
ContractChecker()
Constructor for ContractChecker.
|
| 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
|
void |
clear()
Need a way to clear previously produced results
|
static void |
currentTest(TestCase test)
Set the current test case, on which we check oracles while it is executed
|
void |
output(int position,
String output)
This is called with the console output of each statement
|
static void |
setActive(boolean isActive)
Setter for the field
active. |
void |
testExecutionFinished(ExecutionResult r,
Scope s)
Allow observers to update the execution result at the end the execution of a test.
|
getCurrentTest, getDependentVariables, isWrapperType, setCurrentTestpublic static void setActive(boolean isActive)
Setter for the field active.
isActive - a boolean.public void output(int position,
String output)
output in class ExecutionObserverposition - a int.output - a String object.public static void currentTest(TestCase test)
test - a TestCase object.public 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 void testExecutionFinished(ExecutionResult r, Scope s)
ExecutionObservertestExecutionFinished in class ExecutionObserverCopyright © 2010–2017 EvoSuite. All rights reserved.