Package io.cucumber.messages.types
Class TestRunFinished
- java.lang.Object
-
- io.cucumber.messages.types.TestRunFinished
-
public final class TestRunFinished extends Object
Represents the TestRunFinished message in Cucumber's message protocol- See Also:
- Github - Cucumber - Messages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<Exception>getException()Any exception thrown during the test run, if any.Optional<String>getMessage()An informative message about the test run.BooleangetSuccess()A test run is successful if all steps are either passed or skipped, all before/after hooks passed and no other exceptions where thrown.Optional<String>getTestRunStartedId()TimestampgetTimestamp()Timestamp when the TestRun is finishedinthashCode()StringtoString()
-
-
-
Method Detail
-
getMessage
public Optional<String> getMessage()
An informative message about the test run. Typically additional information about failure, but not necessarily.
-
getSuccess
public Boolean getSuccess()
A test run is successful if all steps are either passed or skipped, all before/after hooks passed and no other exceptions where thrown.
-
getTimestamp
public Timestamp getTimestamp()
Timestamp when the TestRun is finished
-
getException
public Optional<Exception> getException()
Any exception thrown during the test run, if any. Does not include exceptions thrown while executing steps.
-
-