Package io.cucumber.plugin.event
Class TestStepFinished
- java.lang.Object
-
- io.cucumber.plugin.event.TestCaseEvent
-
- io.cucumber.plugin.event.TestStepFinished
-
- All Implemented Interfaces:
Event
@API(status=STABLE) public final class TestStepFinished extends TestCaseEvent
A test step finished event is broadcast when ever a step finishes.A step can either be a
PickleStepTestStepor aHookTestStepdepending on what step was executed.Each test step finished event is followed by an matching
TestStepStartedevent for the same step.The order in which these events may be expected is:[before hook,]* [[before step hook,]* test step, [after step hook,]*]+, [after hook,]*- See Also:
PickleStepTestStep,HookTestStep
-
-
Constructor Summary
Constructors Constructor Description TestStepFinished(Instant timeInstant, TestCase testCase, TestStep testStep, Result result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetInstant()Returns instant from epoch.ResultgetResult()TestStepgetTestStep()-
Methods inherited from class io.cucumber.plugin.event.TestCaseEvent
getTestCase
-
-
-
-
Method Detail
-
getResult
public Result getResult()
-
getTestStep
public TestStep getTestStep()
-
getInstant
public Instant getInstant()
Returns instant from epoch.- Specified by:
getInstantin interfaceEvent- Returns:
- time instant in Instant
- See Also:
Instant.now()
-
-