org.jbehave.core.steps
Class AbstractStepResult
java.lang.Object
org.jbehave.core.steps.AbstractStepResult
- All Implemented Interfaces:
- StepResult
- Direct Known Subclasses:
- AbstractStepResult.Failed, AbstractStepResult.Ignorable, AbstractStepResult.NotPerformed, AbstractStepResult.Pending, AbstractStepResult.Skipped, AbstractStepResult.Successful
public abstract class AbstractStepResult
- extends java.lang.Object
- implements StepResult
Represents the possible step results:
- Failed
- NotPerformed
- Pending
- Successful
- Ignorable
- Skipped
Field Summary |
protected java.lang.String |
step
|
protected java.lang.Throwable |
throwable
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
step
protected final java.lang.String step
throwable
protected final java.lang.Throwable throwable
AbstractStepResult
public AbstractStepResult(java.lang.String step)
AbstractStepResult
public AbstractStepResult(java.lang.String step,
java.lang.Throwable throwable)
parametrisedStep
public java.lang.String parametrisedStep()
- Specified by:
parametrisedStep
in interface StepResult
withParameterValues
public StepResult withParameterValues(java.lang.String parametrisedStep)
- Specified by:
withParameterValues
in interface StepResult
getFailure
public java.lang.Throwable getFailure()
- Specified by:
getFailure
in interface StepResult
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
successful
public static StepResult successful(java.lang.String step)
ignorable
public static StepResult ignorable(java.lang.String step)
pending
public static StepResult pending(java.lang.String step)
pending
public static StepResult pending(java.lang.String step,
PendingStepFound e)
notPerformed
public static StepResult notPerformed(java.lang.String step)
failed
public static StepResult failed(java.lang.String step,
java.lang.Throwable e)
skipped
public static StepResult skipped()
Copyright © 2003-2010. All Rights Reserved.