All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pitest.mutationtest.config.CompoundConfigurationUpdater Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.mutationtest.config;

import org.pitest.plugin.Feature;
import org.pitest.plugin.FeatureSelector;
import org.pitest.plugin.FeatureSetting;

import java.util.Collection;
import java.util.List;

public class CompoundConfigurationUpdater implements ConfigurationUpdater {
    private final FeatureSelector features;

    public CompoundConfigurationUpdater(List features,
                                        Collection children) {
        this.features = new FeatureSelector<>(features, children);
    }

    @Override
    public void updateConfig(FeatureSetting unused, ReportOptions toModify) {
        for (ConfigurationUpdater each : features.getActiveFeatures() ) {
            each.updateConfig(features.getSettingForFeature(each.provides().name()), toModify);
        }
    }

    @Override
    public Feature provides() {
        return Feature.named("n/a");
    }

    @Override
    public String description() {
        return "n/a";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy