| Modifier and Type | Field and Description |
|---|---|
protected Statement |
Assertion.statement
Statement to which the assertion is added
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
Assertion.getStatement()
Getter for statement to which assertion is added
|
| Modifier and Type | Method and Description |
|---|---|
void |
PrimitiveTraceObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
NullTraceObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
AssertionTraceObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
ArrayTraceObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
AssertionTraceObserver.beforeStatement(Statement statement,
Scope scope) |
protected void |
MutationAssertionGenerator.filterInspectorPrimitiveDuplication(Statement statement)
Remove inspector assertions that follow method calls of the same method
|
protected boolean |
MutationAssertionGenerator.justNullAssertion(Statement statement)
Returns true if the statement has nothing but null assertions
|
protected boolean |
MutationAssertionGenerator.primitiveWithoutAssertion(Statement statement) |
void |
Assertion.setStatement(Statement statement)
Setter for statement to which assertion is added
|
protected void |
SameTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
PrimitiveTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
PrimitiveFieldTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
NullTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
InspectorTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
ComparisonTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected abstract void |
AssertionTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
ArrayTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
AssertionTraceObserver.visitDependencies(Statement statement,
Scope scope)
visitDependencies
|
protected void |
AssertionTraceObserver.visitReturnValue(Statement statement,
Scope scope)
visitReturnValue
|
| Constructor and Description |
|---|
InspectorAssertion(Inspector inspector,
Statement statement,
VariableReference source,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Statement |
ContractViolation.getStatement() |
| Modifier and Type | Method and Description |
|---|---|
void |
UndeclaredExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
ToStringReturnsNormallyContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
NullPointerExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
JUnitTheoryContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
JCrasherExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
HashCodeReturnsNormallyContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsSymmetricContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsNullContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsHashcodeContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
abstract void |
Contract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception)
Add an assertion to the statement based on the contract.
|
void |
AssertionErrorContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
SingleContractChecker.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
ContractChecker.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
SingleContractChecker.beforeStatement(Statement statement,
Scope scope) |
void |
ContractChecker.beforeStatement(Statement statement,
Scope scope) |
ContractViolation |
UndeclaredExceptionContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
ToStringReturnsNormallyContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
NullPointerExceptionContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
JUnitTheoryContract.check(Statement statement,
Scope scope,
Throwable exception) |
ContractViolation |
JCrasherExceptionContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
HashCodeReturnsNormallyContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
EqualsSymmetricContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
EqualsNullContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
EqualsHashcodeContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
EqualsContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
abstract ContractViolation |
Contract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
ContractViolation |
AssertionErrorContract.check(Statement statement,
Scope scope,
Throwable exception)
Check the contract on the current statement in the current scope
|
protected boolean |
Contract.isTargetStatement(Statement statement)
Check if this statement is related to the unit under test
|
| Constructor and Description |
|---|
ContractViolation(Contract contract,
Statement statement,
Throwable exception,
VariableReference... variables)
Constructor for ContractViolation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InputObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception) |
void |
InputObserver.beforeStatement(Statement statement,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
OutputObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception) |
void |
OutputObserver.beforeStatement(Statement statement,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionExecutionObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception) |
void |
RegressionExecutionObserver.beforeStatement(Statement statement,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolicObserver.afterStatement(Statement s,
Scope scope,
Throwable exception) |
void |
SymbolicObserver.beforeStatement(Statement s,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
TestCarvingExecutionObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
own comment..
|
void |
TestCarvingExecutionObserver.beforeStatement(Statement statement,
Scope scope) |
| Modifier and Type | Field and Description |
|---|---|
protected Statement |
TestMutationHistoryEntry.statement |
| Modifier and Type | Field and Description |
|---|---|
protected ListenableList<Statement> |
DefaultTestCase.statements
The statements
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
TestMutationHistoryEntry.getStatement() |
Statement |
TestCase.getStatement(int position)
Access statement by index
|
Statement |
DefaultTestCase.getStatement(int position)
Access statement by index
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Statement> |
DefaultTestCase.iterator() |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
TestCase.addStatement(Statement statement)
Append new statement at end of test case
|
VariableReference |
DefaultTestCase.addStatement(Statement statement)
Append new statement at end of test case
|
VariableReference |
TestCase.addStatement(Statement statement,
int position)
Add new statement at position and fix following variable references
|
VariableReference |
DefaultTestCase.addStatement(Statement statement,
int position)
Add new statement at position and fix following variable references
|
void |
ConstantInliner.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
ConcreteValueObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception) |
void |
TestFactory.appendStatement(TestCase test,
Statement statement)
Append statement s, trying to satisfy parameters
Called from TestChromosome when doing crossover
|
void |
ConstantInliner.beforeStatement(Statement statement,
Scope scope) |
void |
ConcreteValueObserver.beforeStatement(Statement statement,
Scope scope) |
void |
TestFactory.changeCall(TestCase test,
Statement statement,
GenericAccessibleObject<?> call)
Replace the statement with a new statement using given call
|
boolean |
TestFactory.changeRandomCall(TestCase test,
Statement statement) |
boolean |
TestCase.contains(Statement statement) |
boolean |
DefaultTestCase.contains(Statement statement) |
static Constraints |
ConstraintHelper.getConstraints(Statement st) |
protected Throwable |
TestCodeVisitor.getException(Statement statement)
getException
|
void |
TestCodeVisitor.setException(Statement statement,
Throwable exception)
setException
|
VariableReference |
TestCase.setStatement(Statement statement,
int position)
Set new statement at position
|
VariableReference |
DefaultTestCase.setStatement(Statement statement,
int position)
Set new statement at position
|
void |
ValueMinimizer.visitStatement(Statement statement) |
void |
TestVisitor.visitStatement(Statement statement)
visitStatement
|
void |
TestCodeVisitor.visitStatement(Statement statement) |
void |
StructuredTestCodeVisitor.visitStatement(Statement statement) |
| Modifier and Type | Method and Description |
|---|---|
void |
TestCase.addStatements(List<? extends Statement> statements)
addStatements
|
void |
DefaultTestCase.addStatements(List<? extends Statement> statements)
addStatements
|
| Constructor and Description |
|---|
TestMutationHistoryEntry(TestMutationHistoryEntry.TestMutation type,
Statement statement) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ExecutionObserver.afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
abstract void |
ExecutionObserver.beforeStatement(Statement statement,
Scope scope)
Called immediately before a statement is executed
|
protected Set<VariableReference> |
ExecutionObserver.getDependentVariables(Statement statement)
Determine the set of variables that somehow lead to this statement
|
protected void |
TestRunnable.informObservers_after(Statement s,
Throwable exceptionThrown)
Inform all observers that input statement has been executed
|
protected void |
TestRunnable.informObservers_before(Statement s)
Inform all observers that we are going to execute the input statement
|
| Modifier and Type | Method and Description |
|---|---|
static StatementLocalSearch |
StatementLocalSearch.getLocalSearchFor(Statement statement) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStatement
Abstract superclass of test case statements
|
class |
ArrayStatement
An array statement creates a new array
|
class |
AssignmentStatement
An assignment statement assigns a variable to another variable.
|
class |
ClassPrimitiveStatement |
class |
ConstructorStatement
This statement represents a constructor call
|
class |
EntityWithParametersStatement
Created by Andrea Arcuri on 04/07/15.
|
class |
EnumPrimitiveStatement<T extends Enum<T>>
EnumPrimitiveStatement class.
|
class |
FieldStatement
Statement that accesses an instance/class field
|
class |
FunctionalMockStatement
Statement representing the creation and setup of a functional mock.
|
class |
ImmutableStringPrimitiveStatement |
class |
MethodStatement |
class |
NullStatement
The concept of variableReferences is: that they are created by some
statement.
|
class |
PrimitiveExpression |
class |
PrimitiveStatement<T>
Statement assigning a primitive numeric value
|
class |
StringPrimitiveStatement
StringPrimitiveStatement class.
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
Statement.clone()
Create deep copy of statement
|
Statement |
AbstractStatement.clone()
Create deep copy of statement
|
Statement |
Statement.clone(TestCase newTestCase)
clone
|
Statement |
AbstractStatement.clone(TestCase newTestCase)
clone
|
Statement |
Statement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
PrimitiveStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
PrimitiveExpression.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
NullStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
MethodStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
FunctionalMockStatement.copy(TestCase newTestCase,
int offset) |
Statement |
FieldStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
ConstructorStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
AssignmentStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
ArrayStatement.copy(TestCase newTestCase,
int offset)
copy
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Statement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
PrimitiveStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
PrimitiveExpression.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
NullStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
MethodStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
FunctionalMockStatement.same(Statement s) |
boolean |
FieldStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
ConstructorStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
AssignmentStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
boolean |
ArrayStatement.same(Statement s)
Allows the comparing of Statements between TestCases.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EnvironmentDataStatement<T>
Created by arcuri on 12/12/14.
|
class |
FileNamePrimitiveStatement
This class is a wrapper for a string that represents a filename
|
class |
LocalAddressPrimitiveStatement
Created by arcuri on 12/15/14.
|
class |
NamePrimitiveStatement
Created by Andrea Arcuri on 06/12/15.
|
class |
RemoteAddressPrimitiveStatement
Created by arcuri on 12/17/14.
|
class |
UrlPrimitiveStatement
Created by arcuri on 12/14/14.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanPrimitiveStatement
BooleanPrimitiveStatement class.
|
class |
BytePrimitiveStatement
BytePrimitiveStatement class.
|
class |
CharPrimitiveStatement
CharPrimitiveStatement class.
|
class |
DoublePrimitiveStatement
DoublePrimitiveStatement class.
|
class |
FloatPrimitiveStatement
FloatPrimitiveStatement class.
|
class |
IntPrimitiveStatement
IntPrimitiveStatement class.
|
class |
LongPrimitiveStatement
LongPrimitiveStatement class.
|
class |
NumericalPrimitiveStatement<T>
Abstract NumericalPrimitiveStatement class.
|
class |
ShortPrimitiveStatement
ShortPrimitiveStatement class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PrivateFieldStatement
Statement representing the setting of a private field, which is done through reflection in the
generated JUnit tests.
|
class |
PrivateMethodStatement
Test case statement representing a reflection call to a private method of the SUT
Created by Andrea Arcuri on 22/02/15.
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
PrivateMethodStatement.copy(TestCase newTestCase,
int offset) |
Statement |
PrivateFieldStatement.copy(TestCase newTestCase,
int offset) |
Copyright © 2010–2017 EvoSuite. All rights reserved.