org.pitest.mutationtest.build.KnownStatusMutationTestUnit Maven / Gradle / Ivy
package org.pitest.mutationtest.build;
import java.util.List;
import java.util.logging.Logger;
import org.pitest.mutationtest.MutationMetaData;
import org.pitest.mutationtest.MutationResult;
import org.pitest.util.Log;
public class KnownStatusMutationTestUnit implements MutationAnalysisUnit {
private static final Logger LOG = Log.getLogger();
private final List mutations;
public KnownStatusMutationTestUnit(final List mutations) {
this.mutations = mutations;
}
@Override
public MutationMetaData call() throws Exception {
LOG.fine("Using historic results for " + this.mutations.size()
+ " mutations");
return new MutationMetaData(this.mutations);
}
@Override
public int priority() {
return Integer.MAX_VALUE;
}
}