Package org.jbehave.core.steps
Class AbstractStepResult
- java.lang.Object
-
- org.jbehave.core.steps.AbstractStepResult
-
- All Implemented Interfaces:
StepResult
- Direct Known Subclasses:
AbstractStepResult.Comment,AbstractStepResult.Failed,AbstractStepResult.Ignorable,AbstractStepResult.NotPerformed,AbstractStepResult.Pending,AbstractStepResult.Skipped,AbstractStepResult.Successful
public abstract class AbstractStepResult extends Object implements StepResult
Represents the possible step results:- Failed
- NotPerformed
- Pending
- Successful
- Ignorable
- Skipped
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractStepResult.Commentstatic classAbstractStepResult.Failedstatic classAbstractStepResult.Ignorablestatic classAbstractStepResult.NotPerformedstatic classAbstractStepResult.Pendingstatic classAbstractStepResult.Skippedstatic classAbstractStepResult.Successful-
Nested classes/interfaces inherited from interface org.jbehave.core.steps.StepResult
StepResult.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringstepprotected UUIDExceptionWrapperthrowableprotected StepResult.Typetype
-
Constructor Summary
Constructors Constructor Description AbstractStepResult(String step, StepResult.Type type, UUIDExceptionWrapper throwable)AbstractStepResult(StepResult.Type type, String step)
-
Method Summary
Modifier and Type Method Description static StepResultcomment(String step)static StepResultfailed(Method method, UUIDExceptionWrapper e)static StepResultfailed(String step, UUIDExceptionWrapper e)UUIDExceptionWrappergetFailure()TiminggetTiming()static StepResultignorable(String step)static StepResultnotPerformed(String step)StringparametrisedStep()static StepResultpending(StepCreator.PendingStep step)static StepResultpending(StepCreator.PendingStep step, PendingStepFound e)StepResultsetTimings(Timer timer)static StepResultskipped()static StepResultsuccessful(Method method)static StepResultsuccessful(String step)StringtoString()StepResultwithParameterValues(String parametrisedStep)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jbehave.core.steps.StepResult
describeTo
-
-
-
-
Field Detail
-
step
protected final String step
-
type
protected final StepResult.Type type
-
throwable
protected final UUIDExceptionWrapper throwable
-
-
Constructor Detail
-
AbstractStepResult
public AbstractStepResult(StepResult.Type type, String step)
-
AbstractStepResult
public AbstractStepResult(String step, StepResult.Type type, UUIDExceptionWrapper throwable)
-
-
Method Detail
-
parametrisedStep
public String parametrisedStep()
- Specified by:
parametrisedStepin interfaceStepResult
-
withParameterValues
public StepResult withParameterValues(String parametrisedStep)
- Specified by:
withParameterValuesin interfaceStepResult
-
getTiming
public Timing getTiming()
-
setTimings
public StepResult setTimings(Timer timer)
- Specified by:
setTimingsin interfaceStepResult
-
getFailure
public UUIDExceptionWrapper getFailure()
- Specified by:
getFailurein interfaceStepResult
-
successful
public static StepResult successful(String step)
-
successful
public static StepResult successful(Method method)
-
ignorable
public static StepResult ignorable(String step)
-
comment
public static StepResult comment(String step)
-
pending
public static StepResult pending(StepCreator.PendingStep step)
-
pending
public static StepResult pending(StepCreator.PendingStep step, PendingStepFound e)
-
notPerformed
public static StepResult notPerformed(String step)
-
failed
public static StepResult failed(String step, UUIDExceptionWrapper e)
-
failed
public static StepResult failed(Method method, UUIDExceptionWrapper e)
-
skipped
public static StepResult skipped()
-
-