/** * Creates a new <code>TestSuiteLocalSearchObjective</code> for a given list * of fitness functions, a test suite and a <code>testIndex</code> for * replacing an optimised test case (i.e. a test case over which was applied * local search) * * @param fitness * the list of fitness functions to be used on the modified test * suite * @param suite * the original test suite * @param index * the index (between 0 and the suite length) that will be * replaced with a new test case * @return */ public static TestSuiteLocalSearchObjective buildNewTestSuiteLocalSearchObjective( List<FitnessFunction<? extends Chromosome>> fitness, TestSuiteChromosome suite, int index) { List<TestSuiteFitnessFunction> ffs = new ArrayList<>(); for (FitnessFunction<? extends Chromosome> ff : fitness) { TestSuiteFitnessFunction tff = (TestSuiteFitnessFunction) ff; ffs.add(tff); } return new TestSuiteLocalSearchObjective(ffs, suite, index); }