@API(status=STABLE)
public final class Result
extends java.lang.Object
| Constructor and Description |
|---|
Result(io.cucumber.plugin.event.Status status,
java.time.Duration duration,
java.lang.Throwable error)
The result of a step or scenario
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.time.Duration |
getDuration() |
java.lang.Throwable |
getError()
Returns the error encountered while executing a step or scenario.
|
io.cucumber.plugin.event.Status |
getStatus() |
int |
hashCode() |
void |
setError(java.lang.Throwable error) |
void |
setStatus(io.cucumber.plugin.event.Status status) |
java.lang.String |
toString() |
public Result(io.cucumber.plugin.event.Status status,
java.time.Duration duration,
java.lang.Throwable error)
status - status of the step or scenarioduration - the durationerror - the error that caused the failure if anypublic io.cucumber.plugin.event.Status getStatus()
public void setStatus(io.cucumber.plugin.event.Status status)
public java.time.Duration getDuration()
public java.lang.Throwable getError()
public void setError(java.lang.Throwable error)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object