Search in sources :

Example 1 with ExamplesTableProperties

use of org.jbehave.core.model.ExamplesTableProperties in project jbehave-core by jbehave.

the class TableSteps method thenTheTransformedTableIs.

@Then("the table transformed by $transformer is: $table")
public void thenTheTransformedTableIs(String transformer, String table) {
    ExamplesTableProperties properties = new ExamplesTableProperties(new ExamplesTable(this.table).getProperties());
    String transformed = this.transformers.transform(transformer, this.table, properties);
    MatcherAssert.assertThat(transformed.trim(), Matchers.equalTo(table));
}
Also used : ExamplesTableProperties(org.jbehave.core.model.ExamplesTableProperties) ExamplesTable(org.jbehave.core.model.ExamplesTable) Then(org.jbehave.core.annotations.Then)

Aggregations

Then (org.jbehave.core.annotations.Then)1 ExamplesTable (org.jbehave.core.model.ExamplesTable)1 ExamplesTableProperties (org.jbehave.core.model.ExamplesTableProperties)1