use of org.evosuite.testcase.factories.RandomLengthTestFactory in project evosuite by EvoSuite.
the class FixedSizeTestSuiteChromosomeFactory method getChromosome.
/* (non-Javadoc)
* @see org.evosuite.ga.ChromosomeFactory#getChromosome()
*/
/**
* {@inheritDoc}
*/
@Override
public TestSuiteChromosome getChromosome() {
TestSuiteChromosome chromosome = new TestSuiteChromosome(new RandomLengthTestFactory());
chromosome.clearTests();
for (int i = 0; i < size; i++) {
TestChromosome test = testChromosomeFactory.getChromosome();
chromosome.addTest(test);
}
return chromosome;
}
Aggregations