use of org.jbehave.core.steps.AbstractStepResult.Pending in project jbehave-core by jbehave.
the class StepCreatorBehaviour method shouldCreatePendingAsStepResults.
@Test
public void shouldCreatePendingAsStepResults() {
// When
String stepAsString = "When I'm pending";
Step pendingStep = StepCreator.createPendingStep(stepAsString, null);
// Then
assertThat(pendingStep.asString(new Keywords()), equalTo(stepAsString));
assertThat(pendingStep.perform(null), instanceOf(Pending.class));
assertThat(pendingStep.doNotPerform(null), instanceOf(Pending.class));
}
Aggregations