| Modifier and Type | Method and Description |
|---|---|
void |
Chromosome.crossOver(Chromosome other,
int position)
Fixed single point cross over
|
abstract void |
Chromosome.crossOver(Chromosome other,
int position1,
int position2)
Single point cross over
|
| Modifier and Type | Method and Description |
|---|---|
void |
SinglePointRelativeCrossOver.crossOver(Chromosome parent1,
Chromosome parent2)
Replace parents with crossed over individuals
|
void |
SinglePointFixedCrossOver.crossOver(Chromosome parent1,
Chromosome parent2)
Replace parents with crossed over individuals
|
void |
SinglePointCrossOver.crossOver(Chromosome parent1,
Chromosome parent2)
Replace parents with crossed over individuals
|
abstract void |
CrossOverFunction.crossOver(Chromosome parent1,
Chromosome parent2)
Replace parents with crossed over individuals
|
void |
CoverageCrossOver.crossOver(Chromosome parent1,
Chromosome parent2)
Replace parents with crossed over individuals
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionTestChromosome.crossOver(Chromosome other,
int position1,
int position2) |
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
CastClassManager.selectCastClass(WildcardType wildcardType,
boolean allowRecursion,
Map<TypeVariable<?>,Type> ownerVariableMap) |
| Modifier and Type | Method and Description |
|---|---|
Set<GenericAccessibleObject<?>> |
TestCluster.getCallsFor(GenericClass clazz,
boolean resolve)
Return all calls that have a parameter with given type
|
Set<GenericAccessibleObject<?>> |
TestCluster.getGenerators(GenericClass clazz,
boolean resolve)
Get a list of all generator objects for the type
|
GenericAccessibleObject<?> |
TestCluster.getRandomCallFor(GenericClass clazz,
TestCase test,
int position) |
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz)
Randomly select one generator
|
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz,
Set<GenericAccessibleObject<?>> excluded,
TestCase test,
int position,
VariableReference generatorRefToExclude,
int recursionDepth)
Randomly select one generator
|
GenericAccessibleObject<?> |
TestCluster.getRandomObjectGenerator()
Randomly select a generator for an Object.class instance
|
GenericAccessibleObject<?> |
TestCluster.getRandomTestCall(TestCase test)
Get random method or constructor of unit under test
|
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
Type exactType,
int position,
int recursionDepth)
Add constructor at given position if max recursion depth has not been
reached
|
VariableReference |
TestFactory.addField(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add a field to the test case
|
VariableReference |
TestFactory.addFieldAssignment(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addFieldFor(TestCase test,
VariableReference callee,
GenericField field,
int position)
Add reference to a field of variable "callee"
|
VariableReference |
TestFactory.addFunctionalMock(TestCase test,
Type type,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addMethod(TestCase test,
GenericMethod method,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addMethodFor(TestCase test,
VariableReference callee,
GenericMethod method,
int position)
Add a call on the method for the given callee at position
|
void |
TestFactory.appendStatement(TestCase test,
Statement statement)
Append statement s, trying to satisfy parameters
Called from TestChromosome when doing crossover
|
void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position)
Assign a value to an array index
|
protected void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position,
List<VariableReference> objects)
Assign a value to an array index for a given set of objects
|
VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position)
Attempt to generate a non-null object; initialize recursion level to 0
|
protected VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position,
int recursionDepth,
boolean allowNull,
VariableReference generatorRefToExclude,
boolean canUseMocks,
boolean canReuseExistingVariables)
Try to generate an object of a given type
|
protected VariableReference |
TestFactory.attemptObjectGeneration(TestCase test,
int position,
int recursionDepth,
boolean allowNull)
Try to generate an object suitable for Object.class
|
void |
TestFactory.changeCall(TestCase test,
Statement statement,
GenericAccessibleObject<?> call)
Replace the statement with a new statement using given call
|
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude) |
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude,
boolean allowNull,
boolean canUseFunctionalMocks,
boolean canReuseVariables)
Create a new non-null, non-primitive object and return reference
|
void |
TestChromosome.crossOver(Chromosome other,
int position1,
int position2)
Single point cross over
|
boolean |
TestFactory.deleteStatement(TestCase test,
int position)
Delete the statement at position from the test case and remove all
references to it
|
boolean |
TestFactory.deleteStatementGracefully(TestCase test,
int position) |
VariableReference |
TestCase.getLastObject(Type type)
Get the last object of the defined type
|
VariableReference |
DefaultTestCase.getLastObject(Type type) |
VariableReference |
TestCase.getLastObject(Type type,
int position)
Get the last object of the defined type
|
VariableReference |
DefaultTestCase.getLastObject(Type type,
int position) |
VariableReference |
TestCase.getRandomNonNullNonPrimitiveObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomNonNullNonPrimitiveObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
TestCase.getRandomNonNullObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomNonNullObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject(Type type)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject(Type type)
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject(Type type,
int position)
Get a random object matching type
|
List<VariableReference> |
TestFactory.satisfyParameters(TestCase test,
VariableReference callee,
List<Type> parameterTypes,
int position,
int recursionDepth,
boolean allowNull,
boolean excludeCalleeGenerators,
boolean canReuseExistingVariables)
Satisfy a list of parameters by reusing or creating variables
|
| Modifier and Type | Method and Description |
|---|---|
GenericMethod |
MethodDescriptor.getGenericMethodFor(GenericClass clazz) |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
FunctionalMockStatement.updateMockedMethods()
Based on most recent test execution, update the mocking configuration.
|
| Constructor and Description |
|---|
PrivateFieldStatement(TestCase tc,
Class<?> klass,
String fieldName,
VariableReference callee,
VariableReference param) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTestSuiteChromosome.crossOver(Chromosome other,
int position1,
int position2)
Single point cross over
|
| Modifier and Type | Method and Description |
|---|---|
GenericMethod |
GenericMethod.copyWithOwnerFromReturnType(GenericClass returnType) |
GenericField |
GenericField.copyWithOwnerFromReturnType(GenericClass returnType) |
abstract T |
GenericAccessibleObject.copyWithOwnerFromReturnType(GenericClass returnType) |
GenericClass |
GenericClass.getGenericInstantiation()
Instantiate all type variables randomly, but adhering to type boundaries
|
T |
GenericAccessibleObject.getGenericInstantiation()
Instantiate all generic type parameters
|
T |
GenericAccessibleObject.getGenericInstantiation(GenericClass calleeType)
Instantiate all generic type parameters based on a new callee type
|
GenericClass |
GenericClass.getGenericInstantiation(Map<TypeVariable<?>,Type> typeMap)
Instantiate type variables using map, and anything not contained in the
map randomly
|
T |
GenericAccessibleObject.getGenericInstantiationFromReturnValue(GenericClass generatedType)
Set type parameters based on return type
|
GenericClass |
GenericClass.getWithParametersFromSuperclass(GenericClass superClass)
If this is a LinkedList> and the super class is a List
|
Copyright © 2010–2017 EvoSuite. All rights reserved.