/** * Prepends each mutant with the relevant mutation number * * @param mutants */ private static void renameMutants(List<Mutant<Schema>> mutants) { for (int i = 0; i < mutants.size(); i++) { Schema mutantSchema = mutants.get(i).getMutatedArtefact(); for (Table table : mutantSchema.getTablesInOrder()) { table.setName("mutant_" + (i + 1) + "_" + table.getName()); } for (Constraint constraint : mutantSchema.getConstraints()) { if (constraint.hasIdentifier() && constraint.getIdentifier().get() != null) { String name = constraint.getIdentifier().get(); constraint.setName("mutant_" + (i + 1) + "_" + name); } } } }