public class JUnitTheoryContract extends Contract
Contract.Pair<T>| Constructor and Description |
|---|
JUnitTheoryContract(GenericMethod theoryMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception)
Add an assertion to the statement based on the contract.
|
void |
changeClassLoader(ClassLoader classLoader) |
ContractViolation |
check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
String |
toString() |
fails, getAllObjectPairs, getAllObjects, getAllVariablePairs, getAllVariables, isTargetStatementpublic JUnitTheoryContract(GenericMethod theoryMethod) throws InstantiationException, IllegalAccessException
public ContractViolation check(Statement statement, Scope scope, Throwable exception)
Contractpublic void addAssertionAndComments(Statement statement, List<VariableReference> variables, Throwable exception)
ContractaddAssertionAndComments in class Contractpublic void changeClassLoader(ClassLoader classLoader)
changeClassLoader in class ContractCopyright © 2010–2017 EvoSuite. All rights reserved.