Package io.cucumber.messages.types
Class TestStepResult
- java.lang.Object
-
- io.cucumber.messages.types.TestStepResult
-
public final class TestStepResult extends Object
Represents the TestStepResult message in Cucumber's message protocol- See Also:
- Github - Cucumber - Messages
-
-
Constructor Summary
Constructors Constructor Description TestStepResult(Duration duration, String message, TestStepResultStatus status, Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DurationgetDuration()Optional<Exception>getException()Exception thrown while executing this step, if any.Optional<String>getMessage()An arbitrary bit of information that explains this result.TestStepResultStatusgetStatus()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TestStepResult
public TestStepResult(Duration duration, String message, TestStepResultStatus status, Exception exception)
-
-
Method Detail
-
getDuration
public Duration getDuration()
-
getMessage
public Optional<String> getMessage()
An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
-
getStatus
public TestStepResultStatus getStatus()
-
getException
public Optional<Exception> getException()
Exception thrown while executing this step, if any.
-
-