public final class Result extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Type |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Result> |
SEVERITY |
static Result |
UNDEFINED |
| Constructor and Description |
|---|
Result(Result.Type status,
Long duration,
Throwable error)
The result of a step or scenario
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getDuration() |
Throwable |
getError() |
String |
getErrorMessage() |
Result.Type |
getStatus() |
int |
hashCode() |
boolean |
is(Result.Type status) |
boolean |
isOk(boolean isStrict) |
String |
toString() |
public static final Comparator<Result> SEVERITY
public static final Result UNDEFINED
public Result(Result.Type status, Long duration, 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 Long getDuration()
public String getErrorMessage()
public Throwable getError()
public boolean is(Result.Type status)
public boolean isOk(boolean isStrict)
Copyright © 2019. All rights reserved.