io.skippy.extension.RegressionSuitePredictionModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skippy-prediction-modifier-regression-suite Show documentation
Show all versions of skippy-prediction-modifier-regression-suite Show documentation
Prediction modifier that is used by the tests in skippy-regression-suite
The newest version!
package io.skippy.extension;
import io.skippy.core.*;
import java.util.Optional;
/**
* Custom {@link PredictionModifier} that is internally used by the tests in skippy-regression-suite.
*/
public class RegressionSuitePredictionModifier implements PredictionModifier {
@Override
public PredictionWithReason passThruOrModify(Class> test, PredictionWithReason prediction) {
return new PredictionWithReason(Prediction.ALWAYS_EXECUTE, new Reason(Reason.Category.OVERRIDE_BY_PREDICTION_MODIFIER, Optional.of("RegressionSuitePredictionModifier")));
}
}