public abstract class AbstractStepResult extends Object implements StepResult
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStepResult.Failed |
static class |
AbstractStepResult.Ignorable |
static class |
AbstractStepResult.NotPerformed |
static class |
AbstractStepResult.Pending |
static class |
AbstractStepResult.Silent |
static class |
AbstractStepResult.Skipped |
static class |
AbstractStepResult.Successful |
StepResult.Type
Modifier and Type | Field and Description |
---|---|
protected String |
step |
protected UUIDExceptionWrapper |
throwable |
protected StepResult.Type |
type |
Constructor and Description |
---|
AbstractStepResult(StepResult.Type type,
String step) |
AbstractStepResult(String step,
StepResult.Type type,
UUIDExceptionWrapper throwable) |
Modifier and Type | Method and Description |
---|---|
long |
durationInMillis() |
static StepResult |
failed(Method method,
UUIDExceptionWrapper e) |
static StepResult |
failed(String step,
UUIDExceptionWrapper e) |
UUIDExceptionWrapper |
getFailure() |
static StepResult |
ignorable(String step) |
static StepResult |
notPerformed(String step) |
String |
parametrisedStep() |
static StepResult |
pending(String step) |
static StepResult |
pending(String step,
PendingStepFound e) |
static StepResult |
silent(Method method) |
static StepResult |
skipped() |
static StepResult |
successful(Method method) |
static StepResult |
successful(String step) |
String |
toString() |
StepResult |
withDurationInMillis(long millis) |
StepResult |
withParameterValues(String parametrisedStep) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describeTo
protected final String step
protected final StepResult.Type type
protected final UUIDExceptionWrapper throwable
public AbstractStepResult(StepResult.Type type, String step)
public AbstractStepResult(String step, StepResult.Type type, UUIDExceptionWrapper throwable)
public String parametrisedStep()
parametrisedStep
in interface StepResult
public StepResult withParameterValues(String parametrisedStep)
withParameterValues
in interface StepResult
public long durationInMillis()
public StepResult withDurationInMillis(long millis)
withDurationInMillis
in interface StepResult
public UUIDExceptionWrapper getFailure()
getFailure
in interface StepResult
public static StepResult successful(String step)
public static StepResult successful(Method method)
public static StepResult ignorable(String step)
public static StepResult pending(String step)
public static StepResult pending(String step, PendingStepFound e)
public static StepResult notPerformed(String step)
public static StepResult failed(String step, UUIDExceptionWrapper e)
public static StepResult failed(Method method, UUIDExceptionWrapper e)
public static StepResult silent(Method method)
public static StepResult skipped()
Copyright © 2003–2015. All rights reserved.