public class ContractViolation extends Object
ContractViolation class.
| Constructor and Description |
|---|
ContractViolation(Contract contract,
Statement statement,
Throwable exception,
VariableReference... variables)
Constructor for ContractViolation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeClassLoader(ClassLoader classLoader) |
Contract |
getContract()
Getter for contract that was violated
|
Throwable |
getException() |
int |
getPosition() |
Statement |
getStatement() |
TestCase |
getTestCase()
Getter for test case
|
protected VariableReference |
getVariable(int num) |
boolean |
isExceptionOfType(Class<?> throwableClass) |
void |
minimizeTest()
Remove all statements that do not contribute to the contract violation
|
boolean |
resultsFromMethod(String methodName) |
boolean |
same(ContractViolation other)
Determine if we have already seen an instance of this violation
|
String |
toString() |
protected VariableReference getVariable(int num)
public Contract getContract()
Contract object.public int getPosition()
public Throwable getException()
public boolean isExceptionOfType(Class<?> throwableClass)
public boolean resultsFromMethod(String methodName)
public Statement getStatement()
public void minimizeTest()
public boolean same(ContractViolation other)
other - a ContractViolation object.public void changeClassLoader(ClassLoader classLoader)
Copyright © 2010–2017 EvoSuite. All rights reserved.