use of org.evosuite.testcase.statements.StringPrimitiveStatement in project evosuite by EvoSuite.
the class NeighbourhoodTest method constructPopulation.
public void constructPopulation() {
Properties.POPULATION = 16;
TestSuiteChromosome[] testSuiteChromObjects = new TestSuiteChromosome[Properties.POPULATION];
for (int i = 0; i < testSuiteChromObjects.length; i++) {
testSuiteChromObjects[i] = new TestSuiteChromosome();
DefaultTestCase testcase = new DefaultTestCase();
StringPrimitiveStatement stringStatement = new StringPrimitiveStatement(testcase, "any string statatement for TS" + i);
testcase.addStatement(stringStatement);
testSuiteChromObjects[i].addTest(testcase);
population.add(testSuiteChromObjects[i]);
}
}
Aggregations