org.pitest.mutationtest.config.PrioritisingTestUnitFinder Maven / Gradle / Ivy
package org.pitest.mutationtest.config;
import org.pitest.testapi.TestUnit;
import org.pitest.testapi.TestUnitExecutionListener;
import org.pitest.testapi.TestUnitFinder;
import java.util.Collections;
import java.util.List;
class PrioritisingTestUnitFinder implements TestUnitFinder {
private final List orderedChildren;
PrioritisingTestUnitFinder(List orderedChildren) {
this.orderedChildren = orderedChildren;
}
@Override
public List findTestUnits(Class> clazz, TestUnitExecutionListener listener) {
for (TestUnitFinder each : orderedChildren) {
List found = each.findTestUnits(clazz, listener);
if (!found.isEmpty()) {
return found;
}
}
return Collections.emptyList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy