public class DSETestGenerator extends Object
| Constructor and Description |
|---|
DSETestGenerator()
Creates a new test generator with no suite.
|
DSETestGenerator(TestSuiteChromosome suite)
Creates a new test generator using a test suite.
|
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
generateNewTest(TestChromosome test,
Set<Integer> statementIndexes,
LocalSearchObjective<TestChromosome> objective)
Applies DSE to the passed test using as symbolic variables only those
that are declared in the set of statement indexes.
|
static void |
getVariables(Expression<?> expr,
Set<Variable<?>> variables)
Recursively determine constraints in expression
|
public DSETestGenerator()
public DSETestGenerator(TestSuiteChromosome suite)
suite - public TestChromosome generateNewTest(TestChromosome test, Set<Integer> statementIndexes, LocalSearchObjective<TestChromosome> objective)
test - the test case to be used as parameterised unit teststatementIndexes - a set with statement indexes with primitive value declarations
that can be used as symbolic variables. This set must be
non-empty.objective - the local search objective to measure fitness improvement.public static void getVariables(Expression<?> expr, Set<Variable<?>> variables)
expr - a Expression object.variables - a Set object.Copyright © 2010–2017 EvoSuite. All rights reserved.