public class Result
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Type |
| Modifier and Type | Field and Description |
|---|---|
static Result |
SKIPPED |
static Result |
UNDEFINED |
| Constructor and Description |
|---|
Result(Result.Type status,
java.lang.Long duration,
java.lang.Throwable error)
The result of a step or scenario
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getDuration() |
java.lang.Throwable |
getError() |
java.lang.String |
getErrorMessage() |
Result.Type |
getStatus() |
boolean |
is(Result.Type status) |
boolean |
isOk(boolean isStrict) |
public static final Result SKIPPED
public static final Result UNDEFINED
public Result(Result.Type status, java.lang.Long duration, java.lang.Throwable error)
status - status of the step or scenarioduration - the duration in nanosecondserror - the error that caused the failure if anypublic Result.Type getStatus()
public java.lang.Long getDuration()
public java.lang.String getErrorMessage()
public java.lang.Throwable getError()
public boolean is(Result.Type status)
public boolean isOk(boolean isStrict)
Copyright © 2017. All Rights Reserved.