use of org.jbehave.core.steps.AbstractStepResult.Comment in project jbehave-core by jbehave.
the class StepCreatorBehaviour method shouldCreateCommentAsStepResults.
@Test
public void shouldCreateCommentAsStepResults() {
// When
String stepAsString = "!-- A comment";
Step comment = StepCreator.createComment(stepAsString);
// Then
assertThat(comment.asString(new Keywords()), equalTo(stepAsString));
assertThat(comment.perform(null), instanceOf(Comment.class));
assertThat(comment.doNotPerform(null), instanceOf(Comment.class));
}
Aggregations