Search in sources :

Example 1 with FilterRulesBuilder

use of io.syndesis.qe.utils.FilterRulesBuilder in project syndesis-qe by syndesisio.

the class IntermediateSteps method createBasicFilterStep.

@Given("^create basic TW to SF filter step")
public void createBasicFilterStep() {
    final Step basicFilter = new Step.Builder().stepKind(StepKind.ruleFilter).configuredProperties(TestUtils.map("type", "rule", "predicate", FilterPredicate.AND.toString(), "rules", new FilterRulesBuilder().addPath("text").addValue("#backendTest").addOps("contains").build())).id(UUID.randomUUID().toString()).build();
    steps.getStepDefinitions().add(new StepDefinition(basicFilter));
}
Also used : FilterRulesBuilder(io.syndesis.qe.utils.FilterRulesBuilder) FilterRulesBuilder(io.syndesis.qe.utils.FilterRulesBuilder) StepDefinition(io.syndesis.qe.bdd.entities.StepDefinition) Step(io.syndesis.common.model.integration.Step) Given(cucumber.api.java.en.Given)

Aggregations

Given (cucumber.api.java.en.Given)1 Step (io.syndesis.common.model.integration.Step)1 StepDefinition (io.syndesis.qe.bdd.entities.StepDefinition)1 FilterRulesBuilder (io.syndesis.qe.utils.FilterRulesBuilder)1