
com.chutneytesting.execution.domain.compiler.TestCasePreProcessors Maven / Gradle / Ivy
package com.chutneytesting.execution.domain.compiler;
import com.chutneytesting.design.domain.scenario.TestCase;
import com.chutneytesting.execution.domain.ExecutionRequest;
import java.util.Collections;
import java.util.List;
public class TestCasePreProcessors {
private final List processors;
public TestCasePreProcessors(List processors) {
this.processors = Collections.unmodifiableList(processors);
}
public T apply(ExecutionRequest executionRequest) {
T tmp = (T) executionRequest.testCase;
for (TestCasePreProcessor p : processors) {
if (p.test(tmp)) {
tmp = p.apply(executionRequest);
}
}
return tmp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy