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 class
AbstractStepResult.Comment
static class
AbstractStepResult.Failed
static class
AbstractStepResult.Ignorable
static class
AbstractStepResult.NotPerformed
static class
AbstractStepResult.Pending
static class
AbstractStepResult.Skipped
static class
AbstractStepResult.Successful
-
Nested classes/interfaces inherited from interface org.jbehave.core.steps.StepResult
StepResult.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected String
step
protected UUIDExceptionWrapper
throwable
protected StepResult.Type
type
-
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 StepResult
comment(String step)
static StepResult
failed(Method method, UUIDExceptionWrapper e)
static StepResult
failed(String step, UUIDExceptionWrapper e)
UUIDExceptionWrapper
getFailure()
Timing
getTiming()
static StepResult
ignorable(String step)
static StepResult
notPerformed(String step)
String
parametrisedStep()
static StepResult
pending(StepCreator.PendingStep step)
static StepResult
pending(StepCreator.PendingStep step, PendingStepFound e)
StepResult
setTimings(Timer timer)
static StepResult
skipped()
static StepResult
successful(Method method)
static StepResult
successful(String step)
String
toString()
StepResult
withParameterValues(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:
parametrisedStep
in interfaceStepResult
-
withParameterValues
public StepResult withParameterValues(String parametrisedStep)
- Specified by:
withParameterValues
in interfaceStepResult
-
getTiming
public Timing getTiming()
-
setTimings
public StepResult setTimings(Timer timer)
- Specified by:
setTimings
in interfaceStepResult
-
getFailure
public UUIDExceptionWrapper getFailure()
- Specified by:
getFailure
in 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()
-
-