org.jbehave.core.steps
Class StepResult
java.lang.Object
org.jbehave.core.steps.StepResult
- Direct Known Subclasses:
- StepResult.Failed, StepResult.Ignorable, StepResult.NotPerformed, StepResult.Pending, StepResult.Success, Steps.SilentStepResult
public abstract class StepResult
- extends Object
Represents a collection of possible step results:
- Failed
- NotPerformed
- Pending
- Success
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
step
protected final String step
throwable
protected final Throwable throwable
StepResult
public StepResult(String step)
StepResult
public StepResult(String step,
Throwable throwable)
withTranslatedText
public StepResult withTranslatedText(String translatedText)
getTranslatedText
public String getTranslatedText()
success
public static StepResult success(String step)
ignorable
public static StepResult ignorable(String step)
pending
public static StepResult pending(String step)
pending
public static StepResult pending(String step,
PendingError e)
notPerformed
public static StepResult notPerformed(String step)
failure
public static StepResult failure(String step,
Throwable e)
describeTo
public abstract void describeTo(StoryReporter reporter)
getThrowable
public Throwable getThrowable()
Copyright © 2003-2010. All Rights Reserved.