Class AssertPostPageStepExecutionInvocationHandler
- java.lang.Object
-
- de.bmiag.tapir.pageexecution.handler.AssertPostPageStepExecutionInvocationHandler
-
- All Implemented Interfaces:
StepExecutionInvocationHandler
@Component("tapirAssertPostPageStepExecutionInvocationHandler") public class AssertPostPageStepExecutionInvocationHandler extends java.lang.Object implements StepExecutionInvocationHandler
Handles steps which are annotated byAssertPostPage
and ensures thatAssertPostPage.value()
is active after the step has been executed.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.bmiag.tapir.execution.executor.StepExecutionInvocationHandler
StepExecutionInvocationHandler.Result
-
-
Constructor Summary
Constructors Constructor Description AssertPostPageStepExecutionInvocationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handlePostInvoke(TestStep testStep, java.lang.Object testInstance)
This method is called after a step is executed successfully.StepExecutionInvocationHandler.Result
handlePreInvoke(TestStep testStep, java.lang.Object testInstance)
This method is called before a step is executed.
-
-
-
Method Detail
-
handlePreInvoke
public StepExecutionInvocationHandler.Result handlePreInvoke(TestStep testStep, java.lang.Object testInstance)
Description copied from interface:StepExecutionInvocationHandler
This method is called before a step is executed. By returningPROCEED
the step is executed afterwards. By returningSKIP
the step is skipped. Moreover it's possible to throw aRuntimeException
in order to mark the step as failed.- Specified by:
handlePreInvoke
in interfaceStepExecutionInvocationHandler
- Parameters:
testStep
- the step which should be executedtestInstance
- the test instance which is used to execute the step- Returns:
- the result
-
handlePostInvoke
public void handlePostInvoke(TestStep testStep, java.lang.Object testInstance)
Description copied from interface:StepExecutionInvocationHandler
This method is called after a step is executed successfully. It's possible to throw aRuntimeException
in order to mark the step as failed.- Specified by:
handlePostInvoke
in interfaceStepExecutionInvocationHandler
- Parameters:
testStep
- the step which has been executed successfullytestInstance
- the test instance which has been used to execute the step
-
-