
org.pitest.mutationtest.config.PrioritisingTestUnitFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pitest Show documentation
Show all versions of pitest Show documentation
Mutation testing system for Java.
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